Function at 0x4057e1
Capabilities:
Set current directory

Disassembly:
mov eax, 0x415ca8
call fcn.0040cb10
sub esp, 0x44
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
push edi
je 0x405800
push dword [esi + 0xc]
call eax
pop ecx
lea ecx, [esi + 0x10]
call fcn.00402bb3
push str.SourceDir
lea ecx, [ebp - 0x2c]
call fcn.00402e73
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x50]
push eax
mov ecx, esi
call fcn.004026c6
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00402ef7
mov ebx, str.WorkingDir
push ebx
lea ecx, [ebp - 0x38]
call fcn.00402e73
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004026c6
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call fcn.00402ef7
cmp dword [esi + 0x2c], 0
je 0x4059d1
push str._.__.__INFO:
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], 0x132
call fcn.00402e73
mov byte [ebp - 4], 6
call fcn.00404a48
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push str.C:projectslibwildfire_apphosthostimpl.cpp
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.004024cb
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.00402ef7
push str.Pruning_working_directory__.
lea ecx, [ebp - 0x44]
call fcn.00402e73
mov byte [ebp - 4], 7
call fcn.00404a48
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.004062f1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.00402ef7
call fcn.00404a48
mov eax, dword [eax]
mov edx, dword [eax]
push 1
lea ecx, [ebp - 0xd]
push ecx
mov ecx, eax
mov byte [ebp - 0xd], 0xa
call dword [edx + 4]
call fcn.00404a48
mov eax, dword [eax]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x14]
mov edi, 0x41c474
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
lea ecx, [ebp - 0x20]
call fcn.004031bc
test eax, eax
jne 0x4059cd
push 0x41cfd8
lea ecx, [ebp - 0x20]
call fcn.004031bc
test eax, eax
jne 0x4059cd
push 1
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x20]
call fcn.00403106
push 0x41cfd4
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.004031bc
lea ecx, [ebp - 0x44]
mov edi, eax
mov byte [ebp - 4], 5
call fcn.00402ef7
test edi, edi
jne 0x4059cd
push 2
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x20]
call fcn.00403106
push 0x41cfd0
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.004031bc
lea ecx, [ebp - 0x44]
mov edi, eax
mov byte [ebp - 4], 5
call fcn.00402ef7
test edi, edi
jne 0x4059cd
push 2
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x20]
call fcn.00403106
push 0x41cfcc
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.004031bc
lea ecx, [ebp - 0x44]
mov edi, eax
mov byte [ebp - 4], 5
call fcn.00402ef7
test edi, edi
jne 0x4059cd
lea ecx, [ebp - 0x20]
call fcn.00405a1c
and dword [esi + 0x2c], 0
mov eax, dword [esi]
and dword [esi + 4], 0
and dword [esi + 8], 0
mov edi, 0x41f3a4
push edi
push str.SourceDir
push esi
call dword [eax + 8]
mov eax, dword [esi]
push edi
push ebx
push esi
call dword [eax + 8]
add esp, 0x18
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00402ef7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00402ef7
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret