Function at 0x406e16
Capabilities:
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x388]
sub esp, 0x408
mov eax, dword [0x41a4c0]
xor eax, ebp
mov dword [ebp + 0x384], eax
mov eax, dword [ebp + 0x398]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x390]
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], eax
call fcn.00406b6e
test al, al
je 0x4072da
or dword [0x41b716], 0xffffffff
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00401128
mov esi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f02
push 0
call esi
push 0x7f00
push 0
mov dword [0x41c87c], eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [0x41b704], eax
push 0x200
lea eax, [ebp - 0x70]
push eax
push edi
call ebx
test eax, eax
je 0x406eb6
lea ecx, [ebp - 0x70]
call fcn.00401267
test eax, eax
je 0x406eac
mov byte [eax], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x8001
mov dword [0x41b560], edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.KERNEL32.dll_GetVersion]
push dword [0x41a034]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x40
mov dword [ebp - 0x78], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call edi
push dword [0x41a024]
mov dword [0x41cbc0], eax
push 0x40
call esi
push eax
call edi
push dword [0x41a028]
mov dword [0x41cbb0], eax
push 0x40
call esi
push eax
call edi
push dword [0x41a038]
mov dword [0x41cbb4], eax
push 0x40
call esi
push eax
call edi
push dword [0x41a02c]
mov dword [0x41cbc4], eax
push 0x40
call esi
push eax
call edi
push dword [0x41a020]
mov dword [0x41cbb8], eax
push 0x40
call esi
push eax
call edi
mov edi, 0x105
push edi
mov esi, 0x41ca40
push esi
push dword [ebp - 0x7c]
mov dword [0x41cbac], eax
call ebx
push edi
push esi
call fcn.0040167b
xor ebx, ebx
push ebx
push 0x41c880
call fcn.0040ba1c
add esp, 0x10
test eax, eax
jne 0x4072da
call fcn.00404145
call fcn.004016f5
test eax, eax
jne 0x406faf
push 0x10
mov ecx, 0x7d0
call fcn.004025e0
mov ecx, 0x41a
push eax
call fcn.004025e0
push eax
push dword [0x41cbc8]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4072da
mov esi, dword [ebp - 0x74]
push 0x101
push ebx
push 0x41b5f8
call fcn.004013f8
add esp, 0xc
jmp 0x407062
push 5
push str._info
push esi
call fcn.0040bd70
add esp, 0xc
test eax, eax
je 0x4070ae
push 6
push str._args
push esi
call fcn.0040bd70
add esp, 0xc
test eax, eax
je 0x40700a
push 6
push 0x41643c
push esi
call fcn.0040bd70
add esp, 0xc
test eax, eax
jne 0x407061
lea edi, [esi + 6]
push edi
mov dword [ebp - 0x80], esi
call fcn.0040a830
test eax, eax
pop ecx
je 0x4070fd
cmp byte [edi], 0x22
jne 0x4070fd
inc edi
mov al, byte [edi]
mov esi, edi
xor ecx, ecx
jmp 0x407039
cmp al, 0x22
je 0x40703d
inc ecx
inc esi
mov al, byte [esi]
test al, al
jne 0x407031
cmp ecx, ebx
je 0x4070c6
cmp byte [esi], bl
je 0x4070c6
push ecx
push edi
push 0x101
push 0x41b5f8
call fcn.0040bdd1
add esp, 0x10
test eax, eax
jne 0x4070c6
inc esi
cmp byte [esi], bl
jne 0x406fca
xor esi, esi
inc esi
cmp dword [ebp - 0x78], 0x80000000
mov dword [0x41cbd0], ebx
jae 0x407088
cmp byte [ebp - 0x78], 4
jb 0x407088
mov dword [0x41cbd0], esi
cmp dword [0x41cbd0], ebx
jne 0x407100
cmp byte [ebp - 0x78], 4
jae 0x407100
push ebx
mov ecx, 0x7d0
call fcn.004025e0
push eax
mov ecx, 0x3f6
call fcn.004025e0
jmp 0x4070fa
push ebx
mov ecx, 0x7d0
call fcn.004025e0
push eax
push dword [0x41cbc4]
push ebx
jmp 0x406fa4
push dword [ebp - 0x80]
mov ecx, 0x42d
call fcn.004025e0
push eax
lea eax, [ebp + 0x190]
push 0x1f4
push eax
call fcn.0040b105
add esp, 0x10
push ebx
mov ecx, 0x7d0
call fcn.004025e0
push eax
lea eax, [ebp + 0x190]
push eax
jmp 0x4070c0
push esi
jmp 0x4070c9
cmp word [0x41a06e], bx
mov dword [0x41cbd0], esi
jne 0x407125
push 0x10
mov ecx, 0x7d0
call fcn.004025e0
mov ecx, 0x3e8
jmp 0x406f97
mov eax, dword [0x41a060]
and al, 2
sub al, 2
neg al
push 4
push ebx
push dword [0x41a040]
sbb eax, eax
inc eax
mov dword [0x41a03c], eax
call fcn.004013f8
mov edx, dword [0x41a060]
mov eax, dword [0x41a040]
mov ecx, 0x100
and edx, ecx
sub edx, ecx
add esp, 0xc
push dword [ebp - 0x7c]
neg edx
sbb edx, edx
inc edx
xor edx, dword [eax + 0x28]
and edx, esi
xor dword [eax + 0x28], edx
mov eax, dword [0x41a040]
mov eax, dword [eax + 0x28]
and eax, esi
mov dword [0x41b588], eax
call fcn.00408ebb
mov edx, dword [0x41cbbc]
cmp edx, ebx
mov ecx, dword [0x41a060]
je 0x407217
test ecx, 0x400000
jne 0x407217
mov edi, ecx
and edi, 0x100000
mov eax, ecx
and eax, 0x80000
neg edi
sbb edi, edi
and edi, 0xfffffffd
add edi, 4
neg eax
sbb eax, eax
and eax, edi
test cl, 0x10
je 0x4071d5
mov ecx, dword [0x41cbc0]
cmp byte [ecx], bl
je 0x4071d5
or eax, 0x2000
push eax
push ecx
push edx
jmp 0x4071ec
or eax, 0x2000
push eax
mov ecx, 0x7d0
call fcn.004025e0
push eax
push dword [0x41cbbc]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x4072da
cmp eax, 2
je 0x4072da
push dword [0x41cbbc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [0x41a060]
test cx, 0x200
push dword [ebp - 0x74]
je 0x407227
mov dword [0x41cba8], esi
call fcn.00403b3e
pop ecx
push ebx
push 0x4060e1
push ebx
push 0x64
push dword [ebp - 0x7c]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
call fcn.004020b3
push dword [0x41cbc0]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
call edi
push dword [0x41cbc0]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
call ebx
push dword [0x41cbb0]
call esi
push eax
call edi
push dword [0x41cbb0]
call esi
push eax
call ebx
push dword [0x41cbb4]
call esi
push eax
call edi
push dword [0x41cbb4]
call esi
push eax
call ebx
push dword [0x41cbc4]
call esi
push eax
call edi
push dword [0x41cbc4]
call esi
push eax
call ebx
push dword [0x41cbb8]
call esi
push eax
call edi
push dword [0x41cbb8]
call esi
push eax
call ebx
push dword [0x41cbac]
call esi
push eax
call edi
push dword [0x41cbac]
call esi
push eax
call ebx
mov ecx, dword [ebp + 0x384]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040aba0
add ebp, 0x388
leave
ret 0x10