Function at 0x403cb5
Capabilities:
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x40f198]
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 - 0x7c], edi
mov dword [ebp - 0x78], 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 [0x412d8c], eax
call esi
mov dword [0x4126d0], eax
push 0x200
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x403d3b
lea eax, [ebp - 0x74]
push eax
call fcn.00401083
test eax, eax
je 0x403d31
mov byte [eax], 0
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x8001
mov dword [0x4103dc], 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 - 0x80], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call edi
mov ebx, 0x101
push ebx
push 0x40
mov dword [0x411c04], eax
call esi
push eax
call edi
push ebx
push 0x40
pop ebx
push ebx
mov dword [0x411bf8], eax
call esi
push eax
call edi
push 0x200
push ebx
mov dword [0x411bfc], eax
call esi
push eax
call edi
push 0x204
push ebx
mov dword [0x411c08], eax
call esi
push eax
call edi
push 0x1f4
push ebx
mov dword [0x411c00], eax
call esi
push eax
call edi
push 0x105
mov esi, 0x412da0
push esi
push dword [ebp - 0x7c]
mov dword [0x411bf0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call fcn.004016f3
pop ecx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor edi, edi
push edi
push 0x412d40
call fcn.0040606c
test eax, eax
pop ecx
pop ecx
jne 0x404052
call fcn.00403ad4
call fcn.00401749
test eax, eax
jne 0x403e31
push 0x10
push 0x7d0
call fcn.00401901
push eax
push 0x41f
call fcn.00401901
push eax
push dword [0x4126c0]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x404052
mov esi, dword [ebp - 0x78]
jmp 0x403e4b
push 5
push str._info
push esi
call fcn.0040118c
add esp, 0xc
test eax, eax
je 0x403e95
inc esi
cmp byte [esi], 0
jne 0x403e36
xor esi, esi
inc esi
cmp dword [ebp - 0x80], 0x80000000
mov dword [0x411c0c], edi
jae 0x403e6e
cmp byte [ebp - 0x80], 4
jb 0x403e6e
mov dword [0x411c0c], esi
cmp dword [0x411c0c], edi
jne 0x403ead
cmp byte [ebp - 0x80], 4
jae 0x403ead
push edi
push 0x7d0
call fcn.00401901
push eax
push 0x3f6
call fcn.00401901
push eax
jmp 0x403ea7
push edi
push 0x7d0
call fcn.00401901
push eax
push dword [0x411c08]
push edi
jmp 0x403e26
cmp word [0x40f056], di
mov dword [0x411c0c], esi
jne 0x403ed3
push 0x10
push 0x7d0
call fcn.00401901
push eax
push 0x3e8
jmp 0x403e1a
mov eax, dword [0x40f048]
mov ecx, eax
and cl, 2
push dword [ebp - 0x7c]
sub cl, 2
neg cl
sbb ecx, ecx
inc ecx
mov dword [0x40f004], ecx
mov ecx, 0x100
and eax, ecx
sub eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [0x411bcc], eax
call fcn.004049a1
mov ecx, dword [0x4109c4]
cmp ecx, edi
je 0x403f8b
mov edx, dword [0x40f048]
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 0x403f4f
mov edx, dword [0x411c04]
cmp byte [edx], 0
je 0x403f4f
or eax, 0x2000
push eax
push edx
push ecx
jmp 0x403f66
or eax, 0x2000
push eax
push 0x7d0
call fcn.00401901
push eax
push dword [0x4109c4]
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x404052
cmp eax, 2
je 0x404052
push dword [0x4109c4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test word [0x40f048], 0x200
push dword [ebp - 0x78]
je 0x403f9f
mov dword [0x411bec], esi
call fcn.0040332d
pop ecx
push edi
push 0x402abe
push edi
push 0x64
push dword [ebp - 0x7c]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
call fcn.0040169a
push dword [0x411c04]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
call edi
push dword [0x411c04]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
call ebx
push dword [0x411bf8]
call esi
push eax
call edi
push dword [0x411bf8]
call esi
push eax
call ebx
push dword [0x411bfc]
call esi
push eax
call edi
push dword [0x411bfc]
call esi
push eax
call ebx
push dword [0x411c08]
call esi
push eax
call edi
push dword [0x411c08]
call esi
push eax
call ebx
push dword [0x411c00]
call esi
push eax
call edi
push dword [0x411c00]
call esi
push eax
call ebx
push dword [0x411bf0]
call esi
push eax
call edi
push dword [0x411bf0]
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.00405ead
add ebp, 0x190
leave
ret 0x10