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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b09bc
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4d9114]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x4d9114]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
cmp dword [esi + 0x18], 8
mov dword [esp + 0x1c], eax
lea eax, [esi + 4]
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], eax
jb 0x41d76b
mov eax, dword [eax]
mov edi, 0x104
push edi
push eax
lea eax, [esp + 0x54]
push eax
call fcn.004898c9
mov ebx, dword [sym.imp.USER32.dll_CharLowerW]
xor eax, eax
mov word [esp + 0x25e], ax
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
call ebx
push 0xb
lea eax, [esp + 0x50]
push str._systemroot
push eax
call fcn.00489990
add esp, 0xc
test eax, eax
lea eax, [esp + 0x4c]
jne 0x41d8c4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x41dbca
xor eax, eax
mov word [esp + 0x252], ax
lea eax, [esp + 0x4c]
push eax
call ebx
mov eax, dword [esi + 0x14]
add eax, 0xfffffff5
push eax
push 0xb
lea eax, [esp + 0x30]
push eax
push esi
call fcn.0041984c
and dword [esp + 0x268], 0
cmp dword [eax + 0x18], 8
jb 0x41d7fe
mov eax, dword [eax + 4]
jmp 0x41d801
add eax, 4
push eax
lea eax, [esp + 0x50]
push edi
push eax
call fcn.00489913
add esp, 0xc
or dword [esp + 0x268], 0xffffffff
xor esi, esi
push 0
inc esi
push esi
lea ecx, [esp + 0x30]
call fcn.0040515f
lea ecx, [esp + 0x4c]
call fcn.0041cd3b
test al, al
je 0x41dbca
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403c71
mov dword [esp + 0x268], esi
lea ecx, [esp + 0x18]
call fcn.00403d35
lea eax, [esp + 0x28]
push eax
call fcn.0041d684
mov byte [esp + 0x268], 2
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
call fcn.00404d62
push dword [esp + 0x1c]
lea eax, [esp + 0x30]
call fcn.0041fc3a
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x3c], esp
push eax
lea ecx, [esp + 0x48]
call fcn.0041d6cf
mov byte [esp + 0x284], 3
mov byte [esp + 0x284], 2
mov ecx, dword [esp + 0x40]
call fcn.0041fa91
add esp, 0x1c
mov byte [esp + 0x17], 1
mov byte [esp + 0x268], 1
jmp 0x41da84
push 8
push str.system32
push eax
call fcn.00489990
add esp, 0xc
test eax, eax
lea eax, [esp + 0x4c]
jne 0x41d9c7
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x41dbca
xor eax, eax
mov word [esp + 0x252], ax
lea eax, [esp + 0x4c]
push eax
call ebx
push 0x4c2ce4
lea eax, [esp + 0x50]
push edi
push eax
call fcn.00489913
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x41d920
mov eax, dword [eax]
push eax
lea eax, [esp + 0x50]
push edi
push eax
call fcn.00489913
add esp, 0xc
lea ecx, [esp + 0x4c]
call fcn.0041cd3b
test al, al
je 0x41dbca
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403c71
mov dword [esp + 0x268], 4
lea eax, [esp + 0x28]
push eax
call fcn.0041d684
mov byte [esp + 0x268], 5
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
call fcn.00404d62
push dword [esp + 0x1c]
lea eax, [esp + 0x30]
call fcn.0041fc3a
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x3c], esp
push eax
lea ecx, [esp + 0x48]
call fcn.0041d6cf
mov byte [esp + 0x284], 6
mov byte [esp + 0x284], 5
mov ecx, dword [esp + 0x40]
call fcn.0041fa91
add esp, 0x1c
mov byte [esp + 0x17], 1
mov byte [esp + 0x268], 4
jmp 0x41da84
mov ebx, dword [sym.imp.SHELL32.dll_PathResolve]
push 0x13
push 0
push eax
call ebx
test eax, eax
je 0x41daa4
push edi
lea eax, [esp + 0x50]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x41dbca
lea ecx, [esp + 0x4c]
call fcn.0041cd3b
test al, al
je 0x41dbca
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403c71
mov dword [esp + 0x268], 7
lea eax, [esp + 0x28]
push eax
call fcn.0041d684
mov byte [esp + 0x268], 8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
call fcn.00404d62
push dword [esp + 0x1c]
lea eax, [esp + 0x30]
call fcn.0041fc3a
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x3c], esp
push eax
lea ecx, [esp + 0x48]
call fcn.0041d6cf
mov byte [esp + 0x284], 9
mov byte [esp + 0x284], 8
mov ecx, dword [esp + 0x40]
call fcn.0041fa91
add esp, 0x1c
mov byte [esp + 0x17], 1
mov byte [esp + 0x268], 7
lea eax, [esp + 0x28]
push eax
call fcn.00408211
or dword [esp + 0x268], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00403910
jmp 0x41dbca
cmp dword [esi + 0x18], 8
mov eax, dword [esp + 0x18]
jb 0x41dab0
mov eax, dword [eax]
lea ecx, [esp + 0x44]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor esi, esi
mov dword [esp + 0x20], eax
cmp eax, esi
je 0x41dbca
cmp dword [esp + 0x44], esi
jle 0x41dbca
mov eax, dword [esp + 0x20]
push edi
push dword [eax + esi*4]
lea eax, [esp + 0x54]
push eax
call fcn.004898c9
add esp, 0xc
push 0x13
push 0
lea eax, [esp + 0x54]
push eax
call ebx
test eax, eax
je 0x41dbbf
push edi
lea eax, [esp + 0x50]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x41dbbf
lea ecx, [esp + 0x4c]
call fcn.0041cd3b
test al, al
je 0x41dbbf
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403c71
mov dword [esp + 0x268], 0xa
lea eax, [esp + 0x28]
push eax
call fcn.0041d684
mov byte [esp + 0x268], 0xb
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
call fcn.00404d62
push dword [esp + 0x1c]
lea eax, [esp + 0x30]
call fcn.0041fc3a
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x64], esp
push eax
lea ecx, [esp + 0x48]
call fcn.0041d6cf
mov byte [esp + 0x284], 0xc
mov byte [esp + 0x284], 0xb
mov ecx, dword [esp + 0x40]
call fcn.0041fa91
add esp, 0x1c
mov byte [esp + 0x17], 1
mov byte [esp + 0x268], 0xa
lea eax, [esp + 0x28]
push eax
call fcn.00408211
or dword [esp + 0x268], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00403910
inc esi
cmp esi, dword [esp + 0x44]
jl 0x41dad4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.004876e8
mov esp, ebp
pop ebp
ret