Function at 0x4057e7
Capabilities:
Set current directory

Disassembly:
mov eax, 0x415cb8
call fcn.0040cb20
sub esp, 0x44
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
push edi
je 0x405806
push dword [esi + 0xc]
call eax
pop ecx
lea ecx, [esi + 0x10]
call fcn.00402bb9
push str.SourceDir
lea ecx, [ebp - 0x2c]
call fcn.00402e4c
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x50]
push eax
mov ecx, esi
call fcn.004026cc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00402ed0
mov ebx, str.WorkingDir
push ebx
lea ecx, [ebp - 0x38]
call fcn.00402e4c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004026cc
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call fcn.00402ed0
cmp dword [esi + 0x2c], 0
je 0x4059d7
push str._.__.__INFO:
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], 0x132
call fcn.00402e4c
mov byte [ebp - 4], 6
call fcn.00404a4e
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.004024d1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.00402ed0
push str.Pruning_working_directory__.
lea ecx, [ebp - 0x44]
call fcn.00402e4c
mov byte [ebp - 4], 7
call fcn.00404a4e
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.004062f7
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.00402ed0
call fcn.00404a4e
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.00404a4e
mov eax, dword [eax]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x14]
mov edi, 0x41c470
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
lea ecx, [ebp - 0x20]
call fcn.00403195
test eax, eax
jne 0x4059d3
push 0x41cfd8
lea ecx, [ebp - 0x20]
call fcn.00403195
test eax, eax
jne 0x4059d3
push 1
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x20]
call fcn.004030df
push 0x41cfd4
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00403195
lea ecx, [ebp - 0x44]
mov edi, eax
mov byte [ebp - 4], 5
call fcn.00402ed0
test edi, edi
jne 0x4059d3
push 2
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x20]
call fcn.004030df
push 0x41cfd0
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.00403195
lea ecx, [ebp - 0x44]
mov edi, eax
mov byte [ebp - 4], 5
call fcn.00402ed0
test edi, edi
jne 0x4059d3
push 2
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x20]
call fcn.004030df
push 0x41cfcc
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00403195
lea ecx, [ebp - 0x44]
mov edi, eax
mov byte [ebp - 4], 5
call fcn.00402ed0
test edi, edi
jne 0x4059d3
lea ecx, [ebp - 0x20]
call fcn.00405a22
and dword [esi + 0x2c], 0
mov eax, dword [esi]
and dword [esi + 4], 0
and dword [esi + 8], 0
mov edi, 0x41f394
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.00402ed0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00402ed0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret