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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c5ac6
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x6c56f8]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
mov esi, ecx
cmp dword [esi + 0x18], 8
mov dword [esp + 0x20], eax
lea eax, [esi + 4]
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], eax
jb 0x40643a
mov eax, dword [eax]
mov ebx, 0x104
push ebx
push eax
lea eax, [esp + 0x54]
push eax
call fcn.00581ab4
mov edi, dword [sym.imp.USER32.dll_CharLowerW]
xor eax, eax
mov word [esp + 0x25e], ax
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
call edi
push 0xb
lea eax, [esp + 0x50]
push str._systemroot
push eax
call fcn.005821ea
add esp, 0xc
test eax, eax
lea eax, [esp + 0x4c]
jne 0x4065a4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4068df
xor eax, eax
mov word [esp + 0x252], ax
lea eax, [esp + 0x4c]
push eax
call edi
mov eax, dword [esi + 0x14]
add eax, 0xfffffff5
push eax
push 0xb
lea eax, [esp + 0x30]
push eax
push esi
call fcn.00408405
and dword [esp + 0x268], 0
cmp dword [eax + 0x18], 8
jb 0x4064cd
mov eax, dword [eax + 4]
jmp 0x4064d0
add eax, 4
push eax
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.0058216d
add esp, 0xc
or dword [esp + 0x268], 0xffffffff
xor edi, edi
push 0
inc edi
push edi
lea esi, [esp + 0x30]
call fcn.00409da6
lea ecx, [esp + 0x4c]
call fcn.00404738
test al, al
je 0x4068df
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004085b5
mov dword [esp + 0x268], edi
lea eax, [esp + 0x14]
call fcn.00408807
lea eax, [esp + 0x28]
push eax
call fcn.0040510f
mov byte [esp + 0x268], 2
lea eax, [esp + 0x14]
lea edi, [esp + 0x28]
call fcn.00408619
push dword [esp + 0x24]
lea eax, [esp + 0x30]
call fcn.00408955
mov edi, dword [esp + 0x20]
test edi, edi
je 0x406563
lea eax, [esp + 0x28]
call fcn.00408619
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x38], esp
push eax
lea ecx, [esp + 0x48]
call fcn.00405188
mov byte [esp + 0x284], 3
mov byte [esp + 0x284], 2
mov edi, dword [esp + 0x34]
call fcn.00407bde
add esp, 0x1c
mov byte [esp + 0x13], 1
mov byte [esp + 0x268], 1
jmp 0x406784
push 8
push str.system32
push eax
call fcn.005821ea
add esp, 0xc
test eax, eax
lea eax, [esp + 0x4c]
jne 0x4066b8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4068df
xor eax, eax
mov word [esp + 0x252], ax
lea eax, [esp + 0x4c]
push eax
call edi
push 0x6810d0
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.0058216d
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x406600
mov eax, dword [eax]
push eax
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.0058216d
add esp, 0xc
lea ecx, [esp + 0x4c]
call fcn.00404738
test al, al
je 0x4068df
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004085b5
mov dword [esp + 0x268], 4
lea eax, [esp + 0x28]
push eax
call fcn.0040510f
mov byte [esp + 0x268], 5
lea eax, [esp + 0x14]
lea edi, [esp + 0x28]
call fcn.00408619
push dword [esp + 0x24]
lea eax, [esp + 0x30]
call fcn.00408955
mov edi, dword [esp + 0x20]
test edi, edi
je 0x406677
lea eax, [esp + 0x28]
call fcn.00408619
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x38], esp
push eax
lea ecx, [esp + 0x48]
call fcn.00405188
mov byte [esp + 0x284], 6
mov byte [esp + 0x284], 5
mov edi, dword [esp + 0x34]
call fcn.00407bde
add esp, 0x1c
mov byte [esp + 0x13], 1
mov byte [esp + 0x268], 4
jmp 0x406784
push 0x13
push 0
push eax
call dword [sym.imp.SHELL32.dll_PathResolve]
test eax, eax
je 0x4067a4
push ebx
lea eax, [esp + 0x50]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x4068df
lea ecx, [esp + 0x4c]
call fcn.00404738
test al, al
je 0x4068df
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004085b5
mov dword [esp + 0x268], 7
lea eax, [esp + 0x28]
push eax
call fcn.0040510f
mov byte [esp + 0x268], 8
lea eax, [esp + 0x14]
lea edi, [esp + 0x28]
call fcn.00408619
push dword [esp + 0x24]
lea eax, [esp + 0x30]
call fcn.00408955
mov edi, dword [esp + 0x20]
test edi, edi
je 0x406748
lea eax, [esp + 0x28]
call fcn.00408619
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x38], esp
push eax
lea ecx, [esp + 0x48]
call fcn.00405188
mov byte [esp + 0x284], 9
mov byte [esp + 0x284], 8
mov edi, dword [esp + 0x34]
call fcn.00407bde
add esp, 0x1c
mov byte [esp + 0x13], 1
mov byte [esp + 0x268], 7
lea eax, [esp + 0x28]
push eax
call fcn.00405159
or dword [esp + 0x268], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004085f6
jmp 0x4068df
cmp dword [esi + 0x18], 8
mov eax, dword [esp + 0x14]
jb 0x4067b0
mov eax, dword [eax]
lea ecx, [esp + 0x44]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4068df
xor esi, esi
cmp dword [esp + 0x44], esi
jle 0x4068df
mov eax, dword [esp + 0x1c]
push ebx
push dword [eax + esi*4]
lea eax, [esp + 0x54]
push eax
call fcn.00581ab4
add esp, 0xc
push 0x13
push 0
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHELL32.dll_PathResolve]
test eax, eax
je 0x4068d4
push ebx
lea eax, [esp + 0x50]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x4068d4
lea ecx, [esp + 0x4c]
call fcn.00404738
test al, al
je 0x4068d4
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004085b5
mov dword [esp + 0x268], 0xa
lea eax, [esp + 0x28]
push eax
call fcn.0040510f
mov byte [esp + 0x268], 0xb
lea eax, [esp + 0x14]
lea edi, [esp + 0x28]
call fcn.00408619
push dword [esp + 0x24]
lea eax, [esp + 0x30]
call fcn.00408955
mov edi, dword [esp + 0x20]
test edi, edi
je 0x40687d
lea eax, [esp + 0x28]
call fcn.00408619
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x64], esp
push eax
lea ecx, [esp + 0x48]
call fcn.00405188
mov byte [esp + 0x284], 0xc
mov byte [esp + 0x284], 0xb
mov edi, dword [esp + 0x34]
call fcn.00407bde
add esp, 0x1c
mov byte [esp + 0x13], 1
mov byte [esp + 0x268], 0xa
lea eax, [esp + 0x28]
push eax
call fcn.00405159
or dword [esp + 0x268], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004085f6
inc esi
cmp esi, dword [esp + 0x44]
jl 0x4067d4
mov al, byte [esp + 0x13]
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.00581268
mov esp, ebp
pop ebp
ret