Function at 0x4365e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5c77b5
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov edi, dword [esp + 0x158]
mov esi, dword [esp + 0x15c]
xor ebx, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
cmp edi, ebx
jne 0x436659
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0058229a
add esp, 4
mov dword [esp + 0x1c], eax
mov edi, eax
push esi
push edi
call fcn.00587a88
add esp, 8
test eax, eax
setne al
cmp al, bl
jne 0x436b0a
xor al, al
cmp al, bl
jne 0x4366d1
lea eax, [esp + 0x120]
push 0x5fcf00
push eax
call fcn.00423280
add esp, 8
mov esi, eax
or dword [esp + 0x18], 1
mov dword [esp + 0x150], ebx
cmp dword [0x695aa8], ebx
je 0x4366b5
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x695aa8]
je 0x4366b5
call fcn.004443b0
jmp 0x4366ba
mov al, byte [0x68a580]
cmp al, bl
je 0x4366d1
push esi
call fcn.00445fa0
add esp, 4
mov byte [esp + 0x17], 1
cmp eax, 1
jae 0x4366d5
mov byte [esp + 0x17], bl
test byte [esp + 0x18], 1
mov dword [esp + 0x150], 0xffffffff
je 0x436716
mov ecx, dword [esp + 0x13c]
and dword [esp + 0x18], 0xfffffffe
push ecx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x134], 8
jb 0x436716
mov edx, dword [esp + 0x120]
push edx
call fcn.00584768
add esp, 4
cmp byte [esp + 0x17], bl
je 0x436b05
push str.Failed_to_get_the_working_directory
lea ecx, [esp + 0xdc]
call fcn.00402bb0
mov ebp, 7
xor eax, eax
mov dword [esp + 0x150], 1
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], ax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
xor ecx, ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], cx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x150], 3
call fcn.00425e70
cmp eax, ebx
je 0x43679d
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0xe0]
push edx
mov ecx, eax
call fcn.00429320
cmp eax, ebx
jne 0x4367ad
lea eax, [esp + 0xd8]
push eax
call fcn.004292f0
add esp, 4
mov esi, eax
call fcn.00420510
mov dword [esp + 0x24], eax
mov byte [esp + 0x150], 4
call fcn.00420510
mov dword [esp + 0x28], eax
mov byte [esp + 0x150], 5
call fcn.00420510
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
push str.wx.sys_error
lea ecx, [esp + 0x100]
mov byte [esp + 0x154], 6
call fcn.00402bb0
mov byte [esp + 0x150], 7
mov dword [esp + 0x80], 1
mov dword [esp + 0x88], str....._srccommon_filefn.cpp
mov dword [esp + 0x90], str.wxDoGetCwd
mov dword [esp + 0x8c], 0x4d2
mov dword [esp + 0x94], 0x5fcf00
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
call sub.KERNEL32.dll_GetCurrentThreadId
xor ecx, ecx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ebx
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xc0], ebx
mov word [esp + 0xb0], cx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
mov byte [esp + 0x150], 8
call sub.KERNEL32.dll_GetLastError
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x104]
push edx
lea ecx, [esp + 0xbc]
mov edi, eax
call fcn.00402610
mov ecx, dword [esp + 0xac]
cmp ecx, ebx
jne 0x43692b
push 0x20
call fcn.00584773
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov byte [esp + 0x150], 9
cmp esi, ebx
je 0x43691a
push 0x64
call fcn.00447710
push 4
push eax
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
call fcn.00585c5e
mov dword [esi], eax
push 0x64
mov byte [esp + 0x160], 0xa
call fcn.00447710
push 4
push eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
call fcn.00585c5e
add esp, 0x18
mov dword [esi + 0x10], eax
mov ecx, esi
jmp 0x43691c
xor ecx, ecx
mov byte [esp + 0x150], 8
mov dword [esp + 0xac], ecx
lea eax, [esp + 0xfc]
push eax
call fcn.004775a0
lea ecx, [esp + 0x24]
mov dword [eax], edi
call fcn.0041de00
push eax
lea ecx, [esp + 0x84]
push ecx
call fcn.0040b680
mov edx, dword [esp + 0xd4]
push edx
call fcn.005844d1
mov edi, 8
add esp, 0xc
cmp dword [esp + 0xc4], edi
jb 0x43697f
mov eax, dword [esp + 0xb0]
push eax
call fcn.00584768
add esp, 4
mov esi, dword [esp + 0xac]
xor ecx, ecx
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xc0], ebx
mov word [esp + 0xb0], cx
mov dword [esp + 0x20], esi
cmp esi, ebx
je 0x4369fe
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
push 0x40b5f0
push edx
push eax
mov byte [esp + 0x15c], 0xb
call fcn.00447740
mov edi, dword [esi + 0x10]
push edi
mov dword [esi + 0x18], ebx
call fcn.005844d1
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push 0x475ea0
push ecx
push edx
mov byte [esp + 0x16c], 7
call fcn.00447740
mov eax, dword [esi]
push eax
mov dword [esi + 8], ebx
call fcn.005844d1
push esi
call fcn.00584768
add esp, 0x24
mov edi, 8
mov eax, dword [esp + 0x118]
push eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x110], edi
jb 0x436a27
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.00584768
add esp, 4
xor edx, edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x110], ebp
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], dx
mov byte [esp + 0x150], 3
call fcn.004020c0
mov eax, dword [esp + 0x54]
push eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x4c], edi
jb 0x436a70
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00584768
add esp, 4
mov eax, dword [esp + 0x78]
xor edx, edx
push eax
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], dx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x70], edi
jb 0x436a9f
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00584768
add esp, 4
mov eax, dword [esp + 0xf4]
xor edx, edx
push eax
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], dx
mov dword [esp + 0x154], 0xffffffff
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xec], edi
jb 0x436ae2
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.00584768
add esp, 4
mov edi, dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 0xec], ebp
mov dword [esp + 0xe8], ebx
mov word [esp + 0xd8], dx
mov al, 1
jmp 0x436672
xor eax, eax
mov word [edi], ax
mov eax, edi
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00585b7b
add esp, 0x140
ret