Function at 0x47ed70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dfa64
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x65b4e4]
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.0040bfe0
movzx eax, al
test eax, eax
jne 0x47f028
push 1
push 2
lea ecx, [ebp - 0xdc]
call fcn.0040b160
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x178]
push ecx
call fcn.00404950
mov ecx, eax
call fcn.004092f0
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 0x61b2a8
push 0x61b2ac
mov eax, dword [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0xdc]
push ecx
call fcn.00409360
add esp, 8
push eax
call fcn.00409c80
add esp, 8
push eax
call fcn.00409c80
add esp, 8
push eax
call fcn.00409c80
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x178]
call fcn.0040c050
lea edx, [ebp - 0x194]
push edx
lea ecx, [ebp - 0xdc]
call fcn.00409610
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.0040bf30
push eax
lea ecx, [ebp - 0x58]
call fcn.0040bf50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x194]
call fcn.0040c050
push 0x61b2b0
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.00404a40
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.0040bf30
push eax
call fcn.0051b730
add esp, 8
cmp dword [ebp - 0x18], 0
ja 0x47eedc
cmp dword [ebp - 0x1c], 0x100000
jb 0x47ef09
lea ecx, [ebp - 0x38]
call fcn.0040bf30
push eax
call fcn.00503060
add esp, 4
push 0
lea ecx, [ebp - 0x38]
call fcn.0040bf30
push eax
lea ecx, [ebp - 0x58]
call fcn.0040bf30
push eax
call fcn.004fe150
add esp, 0xc
push 0x61b2b8
lea ecx, [ebp - 0x58]
call fcn.0040bf30
push eax
call fcn.005b0ac9
add esp, 8
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x47f001
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.004fffc0
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.0040bf30
push eax
mov ecx, dword [ebp - 0x1cc]
call fcn.0040bf30
push eax
push 0x61b2bc
push 0x80
lea eax, [ebp - 0x15c]
push eax
call fcn.005b0ba7
add esp, 0x14
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1b0]
call fcn.0040c050
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 0x47efa9
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.005b0d41
add esp, 0x10
mov eax, dword [ebp - 0x3c]
push eax
call fcn.005b0f84
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x38]
call fcn.0040c050
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0040c050
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xdc]
call fcn.00409ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040c050
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b0968
mov esp, ebp
pop ebp
ret 0x1c