Function at 0x4019be
Capabilities:
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4271a0]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x1a4]
push ebx
mov ebx, dword [ebp + 0x19c]
push esi
push edi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], eax
call fcn.0040589e
test eax, eax
je 0x401da6
and dword [ebp - 0x74], 0
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 [0x42a44c], eax
call esi
mov dword [0x42a448], eax
lea eax, [ebp - 0x70]
push 0x200
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401a55
lea eax, [ebp - 0x70]
push eax
call fcn.00402b1a
test eax, eax
je 0x401a4b
mov byte [eax], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x8001
mov dword [0x427c38], 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 - 0x80], eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call esi
push 0x101
push 0x40
mov dword [0x427c58], eax
call edi
push eax
call esi
push 0x101
push 0x40
mov dword [0x427c44], eax
call edi
push eax
call esi
push 0x200
push 0x40
mov dword [0x427c48], eax
call edi
push eax
call esi
push 0x204
push 0x40
mov dword [0x427c5c], eax
call edi
push eax
call esi
push 0x1f4
push 0x40
mov dword [0x427c4c], eax
call edi
push eax
call esi
mov esi, 0x105
mov dword [0x427c00], eax
push esi
push 0x42a460
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
mov esi, 0x42ad80
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call fcn.00404483
pop ecx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor ebx, ebx
push ebx
push 0x42abc0
call fcn.00409550
pop ecx
pop ecx
test eax, eax
jne 0x401da6
call fcn.004031bc
call fcn.004011df
test eax, eax
jne 0x401b5b
push 0x10
push 0x7d0
call fcn.00403824
push eax
push 0x41f
call fcn.00403824
push eax
push dword [0x42ae9c]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401da6
mov edi, dword [ebp - 0x7c]
xor edx, edx
inc edx
mov esi, edi
cmp byte [edi], bl
je 0x401baf
push 5
push str._info
push esi
call fcn.004037a9
add esp, 0xc
test eax, eax
je 0x401bf1
push 8
push str._parent
push esi
call fcn.004037a9
add esp, 0xc
test eax, eax
jne 0x401ba4
lea eax, [esi + 8]
push eax
call fcn.0040c7bf
pop ecx
push 8
xor edx, edx
mov dword [ebp - 0x74], eax
pop eax
inc edx
jmp 0x401ba9
xor edx, edx
inc edx
mov eax, edx
add esi, eax
cmp byte [esi], bl
jne 0x401b67
mov ecx, dword [ebp - 0x80]
mov eax, ebx
mov dword [0x427c60], ebx
cmp ecx, 0x80000000
jae 0x401bcf
cmp cl, 4
jb 0x401bcf
mov dword [0x427c60], edx
mov eax, edx
test eax, eax
jne 0x401c09
cmp cl, 4
jae 0x401c09
push ebx
push 0x7d0
call fcn.00403824
push eax
push 0x3f6
call fcn.00403824
push eax
jmp 0x401c03
push ebx
push 0x7d0
call fcn.00403824
push eax
push dword [0x427c5c]
push ebx
jmp 0x401b50
xor eax, eax
mov dword [0x427c60], edx
cmp ax, word [0x427056]
jne 0x401c31
push 0x10
push 0x7d0
call fcn.00403824
push eax
push 0x3e8
jmp 0x401b44
mov ecx, dword [0x427048]
mov eax, ecx
push dword [ebp - 0x78]
shr eax, 1
shr ecx, 8
and eax, edx
and ecx, edx
mov dword [0x427028], eax
mov dword [0x427c14], ecx
call fcn.00406846
mov esi, dword [0x427c50]
test esi, esi
je 0x401cda
mov ecx, dword [0x427048]
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 0x401c9d
mov eax, dword [0x427c58]
cmp byte [eax], bl
je 0x401c9d
or edx, 0x2000
push edx
push eax
push esi
jmp 0x401cb5
or edx, 0x2000
push edx
push 0x7d0
call fcn.00403824
push eax
push dword [0x427c50]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x401da6
cmp eax, 2
je 0x401da6
push dword [0x427c50]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test dword [0x427048], 0x200
push edi
je 0x401cf1
mov dword [0x427c3c], 1
call fcn.0040107b
pop ecx
push ebx
push 0x4021a6
push dword [ebp - 0x74]
push 0x64
push dword [ebp - 0x78]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
call fcn.00402073
push dword [0x427c58]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
call edi
push dword [0x427c58]
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
call esi
push dword [0x427c44]
call ebx
push eax
call edi
push dword [0x427c44]
call ebx
push eax
call esi
push dword [0x427c48]
call ebx
push eax
call edi
push dword [0x427c48]
call ebx
push eax
call esi
push dword [0x427c5c]
call ebx
push eax
call edi
push dword [0x427c5c]
call ebx
push eax
call esi
push dword [0x427c4c]
call ebx
push eax
call edi
push dword [0x427c4c]
call ebx
push eax
call esi
push dword [0x427c00]
call ebx
push eax
call edi
push dword [0x427c00]
call ebx
push eax
call esi
mov ecx, dword [ebp + 0x190]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408783
add ebp, 0x194
leave
ret 0x10