Function at 0x5d7f90
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x7067c7
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xe0]
cmp dword [eax + 0x14], 8
jb 0x5d7fd8
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x5d8278
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 1
call fcn.00439d10
add esp, 0x24
test al, al
je 0x5d8278
push str.Could_not_set_current_working_directory
lea ecx, [esp + 0xb0]
call fcn.00418040
xor eax, eax
mov dword [esp + 0xd8], 0
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
mov dword [esp + 0x38], eax
mov byte [esp + 0xd8], 1
call fcn.005eae80
test eax, eax
je 0x5d806f
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xb0]
push ecx
mov ecx, eax
call fcn.005ecae0
mov esi, eax
test esi, esi
jne 0x5d8081
lea eax, [esp + 0xac]
push eax
call fcn.005ed1e0
add esp, 4
mov esi, eax
call fcn.005c92f0
mov dword [esp + 0xc], eax
mov byte [esp + 0xd8], 2
call fcn.005c92f0
mov dword [esp + 0x10], eax
mov byte [esp + 0xd8], 3
call fcn.005c92f0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0
push str.wx.sys_error
lea ecx, [esp + 0x90]
mov byte [esp + 0xdc], 4
call fcn.00418040
push 0
mov byte [esp + 0xdc], 5
mov dword [esp + 0x48], 1
mov dword [esp + 0x50], str....._srccommon_filefn.cpp
mov dword [esp + 0x58], str.wxSetWorkingDirectory
mov dword [esp + 0x54], 0x620
mov dword [esp + 0x5c], 0x721844
call dword [sym.imp.MSVCR120.dll__time64]
add esp, 4
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
mov dword [esp + 0x84], eax
mov byte [esp + 0xd8], 6
call sub.KERNEL32.dll_GetLastError
push eax
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x4c]
call fcn.0049dde0
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.005e6500
push eax
push esi
call fcn.00439e70
push dword [esp + 0x8c]
mov esi, dword [sym.imp.MSVCR120.dll_free]
mov byte [esp + 0xe4], 5
call esi
add esp, 0xc
cmp dword [esp + 0x80], 8
jb 0x5d81a7
push dword [esp + 0x6c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x80], 7
lea ecx, [esp + 0x4c]
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
call fcn.00439c40
push dword [esp + 0xa4]
call esi
add esp, 4
cmp dword [esp + 0xa0], 8
jb 0x5d81ef
push dword [esp + 0x8c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0xa0], 7
lea ecx, [esp + 0xc]
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], ax
mov byte [esp + 0xd8], 1
call fcn.00420020
push dword [esp + 0x38]
call esi
add esp, 4
cmp dword [esp + 0x34], 8
jb 0x5d823c
push dword [esp + 0x20]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push dword [esp + 0xc4]
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
call esi
add esp, 4
cmp dword [esp + 0xc0], 8
jb 0x5d8278
push dword [esp + 0xac]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.006d1ba7
add esp, 0xd0
ret