Function at 0x403e55
Capabilities:
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x411198]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x198]
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x80], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov esi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f02
push 0
call esi
push 0x7f00
push 0
mov dword [0x4152ac], eax
call esi
mov dword [0x4149c0], eax
push 0x200
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x403edb
lea eax, [ebp - 0x74]
push eax
call fcn.00401083
test eax, eax
je 0x403ed1
mov byte [eax], 0
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x8001
mov dword [0x4124bc], edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x41
push 0x40
mov dword [ebp - 0x7c], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call edi
mov ebx, 0x101
push ebx
push 0x40
mov dword [0x413cdc], eax
call esi
push eax
call edi
push ebx
push 0x40
pop ebx
push ebx
mov dword [0x413cd0], eax
call esi
push eax
call edi
push 0x200
push ebx
mov dword [0x413cd4], eax
call esi
push eax
call edi
push 0x204
push ebx
mov dword [0x413ce0], eax
call esi
push eax
call edi
push 0x1f4
push ebx
mov dword [0x413cd8], eax
call esi
push eax
call edi
mov esi, 0x105
push esi
push 0x4149e0
push dword [ebp - 0x78]
mov dword [0x413cc8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
mov esi, 0x4152c0
push esi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call fcn.0040173a
pop ecx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor edi, edi
push edi
push 0x415260
call fcn.004062d0
pop ecx
pop ecx
test eax, eax
jne 0x404205
call fcn.00403c5b
call fcn.00401790
test eax, eax
jne 0x403fe1
push 0x10
push 0x7d0
call fcn.00401948
push eax
push 0x41f
call fcn.00401948
push eax
push dword [0x4149b0]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x404205
mov esi, dword [ebp - 0x80]
jmp 0x403ffb
push 5
push str._info
push esi
call fcn.0040118c
add esp, 0xc
test eax, eax
je 0x404045
inc esi
cmp byte [esi], 0
jne 0x403fe6
xor esi, esi
inc esi
cmp dword [ebp - 0x7c], 0x80000000
mov dword [0x413ce4], edi
jae 0x40401e
cmp byte [ebp - 0x7c], 4
jb 0x40401e
mov dword [0x413ce4], esi
cmp dword [0x413ce4], edi
jne 0x40405d
cmp byte [ebp - 0x7c], 4
jae 0x40405d
push edi
push 0x7d0
call fcn.00401948
push eax
push 0x3f6
call fcn.00401948
push eax
jmp 0x404057
push edi
push 0x7d0
call fcn.00401948
push eax
push dword [0x413ce0]
push edi
jmp 0x403fd6
xor eax, eax
mov dword [0x413ce4], esi
cmp ax, word [0x411056]
jne 0x404085
push 0x10
push 0x7d0
call fcn.00401948
push eax
push 0x3e8
jmp 0x403fca
mov eax, dword [0x411048]
push dword [ebp - 0x78]
mov ecx, eax
and cl, 2
xor edx, edx
cmp cl, 2
sete dl
mov ecx, 0x100
and eax, ecx
sub eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [0x411004], edx
mov dword [0x413ca4], eax
call fcn.00404bc3
mov ecx, dword [0x412aa4]
cmp ecx, edi
je 0x40413d
mov edx, dword [0x411048]
mov ebx, edx
and ebx, 0x100000
mov eax, edx
and eax, 0x80000
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffd
add ebx, 4
neg eax
sbb eax, eax
and eax, ebx
test dl, 0x10
je 0x404101
mov edx, dword [0x413cdc]
cmp byte [edx], 0
je 0x404101
or eax, 0x2000
push eax
push edx
push ecx
jmp 0x404118
or eax, 0x2000
push eax
push 0x7d0
call fcn.00401948
push eax
push dword [0x412aa4]
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x404205
cmp eax, 2
je 0x404205
push dword [0x412aa4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test dword [0x411048], 0x200
push dword [ebp - 0x80]
je 0x404152
mov dword [0x413cc4], esi
call fcn.004034b0
pop ecx
push edi
push 0x402bff
push edi
push 0x64
push dword [ebp - 0x78]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
call fcn.004016e1
push dword [0x413cdc]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
call edi
push dword [0x413cdc]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
call ebx
push dword [0x413cd0]
call esi
push eax
call edi
push dword [0x413cd0]
call esi
push eax
call ebx
push dword [0x413cd4]
call esi
push eax
call edi
push dword [0x413cd4]
call esi
push eax
call ebx
push dword [0x413ce0]
call esi
push eax
call edi
push dword [0x413ce0]
call esi
push eax
call ebx
push dword [0x413cd8]
call esi
push eax
call edi
push dword [0x413cd8]
call esi
push eax
call ebx
push dword [0x413cc8]
call esi
push eax
call edi
push dword [0x413cc8]
call esi
push eax
call ebx
mov ecx, dword [ebp + 0x18c]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004060d3
add ebp, 0x190
leave
ret 0x10