Function at 0x408170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a73a
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x50e008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x420944
lea ecx, [ebp - 0x58]
call fcn.004089e0
mov dword [ebp - 4], 0
push 0x420d5c
lea ecx, [ebp - 0x70]
call fcn.004089e0
mov byte [ebp - 4], 1
mov dword [ebp - 0x74], 0
push 0x42118c
lea ecx, [ebp - 0x11c]
call fcn.004089e0
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xec]
call fcn.004089e0
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x84], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
lea edx, [ebp - 0xbc]
push edx
call fcn.00409550
add esp, 0xc
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x80]
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.00409600
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xbc]
call fcn.00403180
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xec]
call fcn.00403180
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x11c]
call fcn.00403180
push 0x42119c
lea ecx, [ebp - 0x134]
call fcn.004089e0
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x104]
call fcn.004089e0
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x9c]
push ecx
mov edx, dword [ebp - 0x90]
push edx
lea eax, [ebp - 0xd4]
push eax
call fcn.00409550
add esp, 0xc
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x98], ecx
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x98]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00409600
add esp, 0xc
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xd4]
call fcn.00403180
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x104]
call fcn.00403180
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x134]
call fcn.00403180
push 0x420d84
lea ecx, [ebp - 0x28]
call fcn.004031a0
push eax
call fcn.0040abd1
add esp, 8
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x40836d
mov edx, dword [ebp - 0x74]
push edx
call fcn.0040aea0
add esp, 4
mov dword [ebp - 0x74], 0
jmp 0x4083e9
push 0x4215bc
lea ecx, [ebp - 0x28]
call fcn.004031a0
push eax
call fcn.0040abd1
add esp, 8
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x4083c0
lea ecx, [ebp - 0x28]
call fcn.00403180
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00403180
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00403180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00403180
jmp 0x4084c5
mov eax, dword [ebp - 0x74]
push eax
push 1
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.0040b228
add esp, 0x10
mov eax, dword [ebp - 0x74]
push eax
call fcn.0040aea0
add esp, 4
mov dword [ebp - 0x74], 0
push 0x4211b4
lea ecx, [ebp - 0x40]
call fcn.004031a0
push eax
call fcn.0040abd1
add esp, 8
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x40841d
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.0040aea0
add esp, 4
mov dword [ebp - 0x74], 0
jmp 0x408496
push 0x4219cc
lea ecx, [ebp - 0x40]
call fcn.004031a0
push eax
call fcn.0040abd1
add esp, 8
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x40846d
lea ecx, [ebp - 0x28]
call fcn.00403180
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00403180
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00403180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00403180
jmp 0x4084c5
mov edx, dword [ebp - 0x74]
push edx
push 1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040b228
add esp, 0x10
mov edx, dword [ebp - 0x74]
push edx
call fcn.0040aea0
add esp, 4
mov dword [ebp - 0x74], 0
lea ecx, [ebp - 0x28]
call fcn.00403180
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00403180
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00403180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00403180
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a10c
mov esp, ebp
pop ebp
ret