Function at 0x40ef90
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534300
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x584cc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00403f60
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00401780
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.0041ed82
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call fcn.00401b40
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jne 0x40f035
push 0
push 0
lea ecx, [ebp - 0x40]
call fcn.0041ee03
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jne 0x40f161
cmp dword [ebp - 0x18], 1
jne 0x40f161
lea ecx, [ebp - 0x40]
call fcn.0041eb6d
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x40]
call fcn.0041ed47
test eax, eax
je 0x40f065
jmp 0x40f15c
lea ecx, [ebp - 0x40]
call fcn.004041d0
test eax, eax
je 0x40f153
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x40]
call fcn.0041f097
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x80]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00401890
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.00401ef0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.00403f60
add esp, 0xc
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x88], ecx
mov byte [ebp - 4], 6
push ecx
mov edx, esp
mov dword [ebp - 0x48], esp
push 0x562644
mov eax, dword [ebp - 0x88]
push eax
push edx
call fcn.00404070
add esp, 0xc
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], ecx
mov byte [ebp - 4], 7
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
lea edx, [ebp + 8]
push edx
call fcn.004017b0
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x78]
call fcn.0040ef90
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.00401ef0
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ecx
jmp 0x40f15c
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
jmp 0x40f035
cmp dword [ebp - 0x24], 1
jne 0x40f16f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
lea ecx, [ebp - 0x40]
call fcn.0041ea87
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x54], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.0041edb1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00401ef0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00401ef0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401ef0
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc