Function at 0x4019a9
Capabilities:
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4241a4]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [ebp + 0x1a0]
push ebx
mov ebx, dword [ebp + 0x198]
push esi
push edi
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], eax
call fcn.00405c99
test eax, eax
je 0x401d59
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 [0x427360], eax
call esi
mov dword [0x42735c], eax
lea eax, [ebp - 0x74]
push 0x200
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401a3c
lea eax, [ebp - 0x74]
push eax
call fcn.00402ada
test eax, eax
je 0x401a32
mov byte [eax], 0
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x8001
mov dword [0x424b80], ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x41
push 0x40
mov dword [ebp - 0x78], eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call esi
push 0x101
push 0x40
mov dword [0x424b70], eax
call edi
push eax
call esi
push 0x101
push 0x40
mov dword [0x424b64], eax
call edi
push eax
call esi
push 0x200
push 0x40
mov dword [0x424b68], eax
call edi
push eax
call esi
push 0x204
push 0x40
mov dword [0x424b74], eax
call edi
push eax
call esi
push 0x1f4
push 0x40
mov dword [0x424b6c], eax
call edi
push eax
call esi
mov esi, 0x105
mov dword [0x424b5c], eax
push esi
push 0x4278e0
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
mov esi, 0x427c60
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call fcn.00404380
pop ecx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor ebx, ebx
push ebx
push 0x4278a0
call fcn.00409970
pop ecx
pop ecx
test eax, eax
jne 0x401d59
call fcn.0040316c
call fcn.004011b8
test eax, eax
jne 0x401b42
push 0x10
push 0x7d0
call fcn.004037c0
push eax
push 0x41f
call fcn.004037c0
push eax
push dword [0x427358]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401d59
mov edi, dword [ebp - 0x80]
mov esi, edi
cmp byte [edi], bl
je 0x401b64
push 5
push str._info
push esi
call fcn.00403745
add esp, 0xc
test eax, eax
je 0x401ba6
inc esi
cmp byte [esi], bl
jne 0x401b4b
xor edx, edx
mov eax, ebx
inc edx
mov dword [0x424b78], eax
cmp dword [ebp - 0x78], 0x80000000
jae 0x401b83
cmp byte [ebp - 0x78], 4
cmovae eax, edx
mov dword [0x424b78], eax
test eax, eax
jne 0x401bbe
cmp byte [ebp - 0x78], 4
jae 0x401bbe
push ebx
push 0x7d0
call fcn.004037c0
push eax
push 0x3f6
call fcn.004037c0
push eax
jmp 0x401bb8
push ebx
push 0x7d0
call fcn.004037c0
push eax
push dword [0x424b74]
push ebx
jmp 0x401b37
xor eax, eax
mov dword [0x424b78], edx
cmp ax, word [0x42404e]
jne 0x401be6
push 0x10
push 0x7d0
call fcn.004037c0
push eax
push 0x3e8
jmp 0x401b2b
mov ecx, dword [0x424040]
mov eax, ecx
push dword [ebp - 0x7c]
shr eax, 1
shr ecx, 8
and eax, edx
and ecx, edx
mov dword [0x424064], eax
mov dword [0x424b30], ecx
call fcn.00406b69
mov esi, dword [0x424b84]
test esi, esi
je 0x401c8f
mov ecx, dword [0x424040]
mov eax, ecx
and eax, 0x100000
mov edx, ecx
and edx, 0x80000
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
neg edx
sbb edx, edx
and edx, eax
test cl, 0x10
je 0x401c52
mov eax, dword [0x424b70]
cmp byte [eax], bl
je 0x401c52
or edx, 0x2000
push edx
push eax
push esi
jmp 0x401c6a
or edx, 0x2000
push edx
push 0x7d0
call fcn.004037c0
push eax
push dword [0x424b84]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x401d59
cmp eax, 2
je 0x401d59
push dword [0x424b84]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test dword [0x424040], 0x200
push edi
je 0x401ca6
mov dword [0x424b58], 1
call fcn.0040107b
pop ecx
push ebx
push 0x40215e
push ebx
push 0x64
push dword [ebp - 0x7c]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
call fcn.0040202b
push dword [0x424b70]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
call edi
push dword [0x424b70]
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
call esi
push dword [0x424b64]
call ebx
push eax
call edi
push dword [0x424b64]
call ebx
push eax
call esi
push dword [0x424b68]
call ebx
push eax
call edi
push dword [0x424b68]
call ebx
push eax
call esi
push dword [0x424b74]
call ebx
push eax
call edi
push dword [0x424b74]
call ebx
push eax
call esi
push dword [0x424b6c]
call ebx
push eax
call edi
push dword [0x424b6c]
call ebx
push eax
call esi
push dword [0x424b5c]
call ebx
push eax
call edi
push dword [0x424b5c]
call ebx
push eax
call esi
mov ecx, dword [ebp + 0x18c]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040896e
lea esp, [ebp + 0x190]
pop ebp
ret 0x10