Function at 0x1005a370
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x414]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0x208
push 0
push eax
call fcn.102134e7
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x1005a70c
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.102134e7
add esp, 0xc
lea eax, [ebp - 0x61c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1005a6a0
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x620], 0
push 0
push eax
call fcn.102134e7
add esp, 0xc
lea eax, [ebp - 0x61c]
push str.regsvr32.exe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x1005a4ed
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x1005a4ed
lea eax, [ebp - 0x624]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je 0x1005a70c
mov ecx, dword [ebp - 0x624]
cmp ecx, 2
jl 0x1005a4cf
mov esi, 1
cmp ecx, esi
jle 0x1005a4cf
jmp 0x1005a480
mov eax, dword [ebx + esi*4]
cmp word [eax], 0x2f
je 0x1005a4a2
push edi
push str..dll
push eax
call fcn.1005a7c0
add esp, 0xc
test eax, eax
jne 0x1005a4c5
mov ecx, dword [ebp - 0x624]
inc esi
cmp esi, ecx
jl 0x1005a480
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x620]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x620], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x620]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x620], 0
push 0
push eax
call fcn.102134e7
add esp, 0xc
lea eax, [ebp - 0x61c]
push str.rundll32.exe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x1005a5b3
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x1005a5b3
lea eax, [ebp - 0x624]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x1005a70c
cmp dword [ebp - 0x624], 2
jl 0x1005a595
mov ebx, dword [esi + 4]
push 0x2c
push ebx
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x1005a578
xor ecx, ecx
mov word [eax], cx
push edi
push str..dll
push ebx
call fcn.1005a7c0
add esp, 0xc
test eax, eax
je 0x1005a595
mov dword [ebp - 0x620], 1
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x620]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x624], 0
push 0
push eax
call fcn.102134e7
add esp, 0xc
lea eax, [ebp - 0x61c]
push str.cmd.exe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x1005a6a0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x1005a6a0
lea eax, [ebp - 0x620]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je 0x1005a70c
mov ecx, dword [ebp - 0x620]
mov esi, 1
cmp ecx, esi
jle 0x1005a682
mov eax, dword [ebx + esi*4]
cmp word [eax], 0x2f
je 0x1005a655
push edi
push str..exe
push eax
call fcn.1005a7c0
add esp, 0xc
test eax, eax
jne 0x1005a678
mov ecx, dword [ebp - 0x620]
inc esi
cmp esi, ecx
jl 0x1005a633
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x624]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x624], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x624]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x414]
mov ecx, 0x104
sub edx, edi
lea ecx, [ecx]
lea eax, [ecx + 0x7ffffefa]
test eax, eax
je 0x1005a6f1
movzx eax, word [edx + edi]
test ax, ax
je 0x1005a6ea
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x1005a6b0
sub edi, 2
xor eax, eax
mov word [edi], ax
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x1005a6f1
sub edi, 2
xor eax, eax
mov word [edi], ax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret