Function at 0x4813c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f1f94
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x66d4f4]
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.0040b5d0
movzx eax, al
test eax, eax
jne 0x481678
push 1
push 2
lea ecx, [ebp - 0xdc]
call fcn.0040a750
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x178]
push ecx
call fcn.004040c0
mov ecx, eax
call fcn.004088e0
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 0x62ae98
push 0x62ae9c
mov eax, dword [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0xdc]
push ecx
call fcn.00408950
add esp, 8
push eax
call fcn.00409270
add esp, 8
push eax
call fcn.00409270
add esp, 8
push eax
call fcn.00409270
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x178]
call fcn.0040b640
lea edx, [ebp - 0x194]
push edx
lea ecx, [ebp - 0xdc]
call fcn.00408c00
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.0040b520
push eax
lea ecx, [ebp - 0x58]
call fcn.0040b540
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x194]
call fcn.0040b640
push 0x62aea0
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.004041b0
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.0040b520
push eax
call fcn.00530270
add esp, 8
cmp dword [ebp - 0x18], 0
ja 0x48152c
cmp dword [ebp - 0x1c], 0x100000
jb 0x481559
lea ecx, [ebp - 0x38]
call fcn.0040b520
push eax
call fcn.0050ba00
add esp, 4
push 0
lea ecx, [ebp - 0x38]
call fcn.0040b520
push eax
lea ecx, [ebp - 0x58]
call fcn.0040b520
push eax
call fcn.00506620
add esp, 0xc
push 0x62aea8
lea ecx, [ebp - 0x58]
call fcn.0040b520
push eax
call fcn.005bd438
add esp, 8
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x481651
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.00508960
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.0040b520
push eax
mov ecx, dword [ebp - 0x1cc]
call fcn.0040b520
push eax
push 0x62aeac
push 0x80
lea eax, [ebp - 0x15c]
push eax
call fcn.005bd516
add esp, 0x14
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1b0]
call fcn.0040b640
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 0x4815f9
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.005bd6b0
add esp, 0x10
mov eax, dword [ebp - 0x3c]
push eax
call fcn.005bd8f3
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x38]
call fcn.0040b640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0040b640
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xdc]
call fcn.004094e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040b640
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bd2d7
mov esp, ebp
pop ebp
ret 0x1c