Function at 0x40f1d0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534778
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x584cc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x44], 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 - 0x14]
call fcn.00401780
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.0041ed82
mov byte [ebp - 4], 5
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 0x40f2d4
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xbc]
add ecx, 0x278
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.00403f60
add esp, 0xc
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xc4]
call fcn.00401b40
push eax
mov ecx, dword [ebp - 0xbc]
mov ecx, dword [ecx + 0x270]
call fcn.00413ab4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.00401ef0
cmp dword [ebp - 0x24], 1
jne 0x40f2e9
push 0
push 0
lea ecx, [ebp - 0x40]
call fcn.0041ee03
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jne 0x40f634
cmp dword [ebp - 0x18], 1
jne 0x40f634
lea ecx, [ebp - 0x40]
call fcn.0041eb6d
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x40]
call fcn.0041ed47
test eax, eax
je 0x40f319
jmp 0x40f62f
lea ecx, [ebp - 0x40]
call fcn.004041d0
test eax, eax
je 0x40f482
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x40]
call fcn.0041f097
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0xcc]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00401890
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4c]
call fcn.00401ef0
lea edx, [ebp - 0x1c]
push edx
push 0x562648
lea eax, [ebp - 0x50]
push eax
call fcn.0040b340
add esp, 0xc
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0xd4]
call fcn.00401b40
push eax
mov edx, dword [ebp - 0xbc]
mov ecx, dword [edx + 0x270]
call fcn.00413a8a
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x50]
call fcn.00401ef0
cmp dword [ebp - 0x24], 0
je 0x40f47d
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.00403f60
add esp, 0xc
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xdc], eax
mov byte [ebp - 4], 9
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
push 0x56264c
mov edx, dword [ebp - 0xdc]
push edx
push ecx
call fcn.00404070
add esp, 0xc
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], eax
mov byte [ebp - 4], 0xa
push ecx
mov ecx, esp
mov dword [ebp - 0x5c], esp
lea edx, [ebp + 8]
push edx
call fcn.004017b0
mov dword [ebp - 0xe8], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0xbc]
call fcn.0040f1d0
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
call fcn.00401ef0
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x44]
mov dword [ebp - 0x20], ecx
jmp 0x40f62f
lea edx, [ebp - 0x60]
push edx
lea ecx, [ebp - 0x40]
call fcn.0041f097
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xf4], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xf4]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401890
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x60]
call fcn.00401ef0
lea edx, [ebp - 0x14]
push edx
push 0x562650
lea eax, [ebp - 0x64]
push eax
call fcn.0040b340
add esp, 0xc
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], ecx
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x14]
push edx
push 0x562654
lea eax, [ebp - 0x68]
push eax
call fcn.0040b340
add esp, 0xc
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0x104], ecx
mov byte [ebp - 4], 0xd
push 1
push 2
mov ecx, dword [ebp - 0xfc]
call fcn.00401b40
push eax
mov ecx, dword [ebp - 0x104]
call fcn.00401b40
push eax
mov edx, dword [ebp - 0xbc]
mov ecx, dword [edx + 0x270]
call fcn.00413ac9
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x68]
call fcn.00401ef0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x64]
call fcn.00401ef0
cmp dword [ebp - 0x24], 0
je 0x40f62f
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xbc]
add edx, 0x278
push edx
lea eax, [ebp - 0x6c]
push eax
call fcn.00403f60
add esp, 0xc
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x10c], ecx
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.00403f60
add esp, 0xc
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
call fcn.00401b40
push eax
push 0
mov ecx, dword [ebp - 0xbc]
add ecx, 0x180
call fcn.00402730
lea ecx, [ebp - 0x70]
call fcn.00401ef0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6c]
call fcn.00401ef0
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x114], edx
fild dword [ebp - 0x114]
fmul qword [0x562f38]
fidiv dword [ebp + 0x10]
call fcn.00514a80
mov ecx, dword [ebp - 0xbc]
add ecx, 0x10c
call fcn.004027c0
mov ecx, dword [ebp - 0xbc]
call fcn.00402590
jmp 0x40f2e9
lea eax, [ebp + 0xc]
push eax
push 0x562658
call fcn.00401b10
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40f67f
cmp dword [ebp - 0x24], 0
je 0x40f660
push 0x56265c
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40f67f
push 0x562660
mov edx, dword [ebp - 0xbc]
mov ecx, dword [edx + 0x270]
call fcn.00413ab4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40f693
cmp dword [ebp + 0x18], 0
je 0x40f693
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
lea ecx, [ebp - 0x40]
call fcn.0041ea87
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x74], edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.0041edb1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00401ef0
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 - 0x74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14