Function at 0x47e370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e0b14
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x65d4e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1b4], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040bec0
movzx eax, al
test eax, eax
jne 0x47e628
push 1
push 2
lea ecx, [ebp - 0xdc]
call fcn.0040b040
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x178]
push ecx
call fcn.00404970
mov ecx, eax
call fcn.004091d0
mov dword [ebp - 0x1b8], eax
mov edx, dword [ebp - 0x1b8]
mov dword [ebp - 0x1bc], edx
mov byte [ebp - 4], 2
push str.captainip.log
push 0x61c408
push 0x61c40c
mov eax, dword [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0xdc]
push ecx
call fcn.00409240
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
push eax
call fcn.00409b60
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x178]
call fcn.0040bf30
lea edx, [ebp - 0x194]
push edx
lea ecx, [ebp - 0xdc]
call fcn.004094f0
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x1c4], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c4]
call fcn.0040be10
push eax
lea ecx, [ebp - 0x58]
call fcn.0040be30
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x194]
call fcn.0040bf30
push 0x61c410
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.00404a60
add esp, 0xc
mov byte [ebp - 4], 6
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040be10
push eax
call fcn.0051c6c0
add esp, 8
cmp dword [ebp - 0x18], 0
ja 0x47e4dc
cmp dword [ebp - 0x1c], 0x100000
jb 0x47e509
lea ecx, [ebp - 0x38]
call fcn.0040be10
push eax
call fcn.00504080
add esp, 4
push 0
lea ecx, [ebp - 0x38]
call fcn.0040be10
push eax
lea ecx, [ebp - 0x58]
call fcn.0040be10
push eax
call fcn.004ff170
add esp, 0xc
push 0x61c418
lea ecx, [ebp - 0x58]
call fcn.0040be10
push eax
call fcn.005b1ae9
add esp, 8
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x47e601
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.00500fe0
add esp, 4
mov dword [ebp - 0x1c8], eax
mov edx, dword [ebp - 0x1c8]
mov dword [ebp - 0x1cc], edx
mov byte [ebp - 4], 7
lea ecx, [ebp + 8]
call fcn.0040be10
push eax
mov ecx, dword [ebp - 0x1cc]
call fcn.0040be10
push eax
push 0x61c41c
push 0x80
lea eax, [ebp - 0x15c]
push eax
call fcn.005b1bc7
add esp, 0x14
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1b0]
call fcn.0040bf30
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x1d0], ecx
mov edx, dword [ebp - 0x1d0]
add edx, 1
mov dword [ebp - 0x1d4], edx
mov eax, dword [ebp - 0x1d0]
mov cl, byte [eax]
mov byte [ebp - 0x1d5], cl
add dword [ebp - 0x1d0], 1
cmp byte [ebp - 0x1d5], 0
jne 0x47e5a9
mov edx, dword [ebp - 0x1d0]
sub edx, dword [ebp - 0x1d4]
mov dword [ebp - 0x1dc], edx
mov eax, dword [ebp - 0x3c]
push eax
push 1
mov ecx, dword [ebp - 0x1dc]
push ecx
lea edx, [ebp - 0x15c]
push edx
call fcn.005b1d61
add esp, 0x10
mov eax, dword [ebp - 0x3c]
push eax
call fcn.005b1fa4
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x38]
call fcn.0040bf30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0040bf30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xdc]
call fcn.00409dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040bf30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b1988
mov esp, ebp
pop ebp
ret 0x1c