Function at 0x412430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5db6bf
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
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 - 0x184], ecx
push 0x62a72c
mov eax, dword [ebp - 0x184]
add eax, 0x44
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.00404a60
add esp, 0xc
mov dword [ebp - 0x188], eax
mov edx, dword [ebp - 0x188]
mov dword [ebp - 0x18c], edx
mov dword [ebp - 4], 0
push 0x62a728
mov eax, dword [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00404a60
add esp, 0xc
mov dword [ebp - 0x190], eax
mov edx, dword [ebp - 0x190]
mov dword [ebp - 0x194], edx
mov byte [ebp - 4], 1
push str.P2PInfo.log
mov eax, dword [ebp - 0x194]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00404a60
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x12c]
call fcn.0040bf30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x110]
call fcn.0040bf30
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x70]
call fcn.0040bf50
mov byte [ebp - 4], 5
push 0x62a730
lea ecx, [ebp - 0x2c]
call fcn.0040be10
push eax
call fcn.005b1ae9
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x412693
lea eax, [ebp - 0x148]
push eax
call fcn.00500fe0
add esp, 4
mov dword [ebp - 0x198], eax
mov ecx, dword [ebp - 0x198]
mov dword [ebp - 0x19c], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x19c]
call fcn.0040be10
push eax
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
push str._ThreadId_lu__t__s_
push 0x80
lea edx, [ebp - 0xf4]
push edx
call fcn.005b1bc7
add esp, 0x14
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x148]
call fcn.0040bf30
lea eax, [ebp - 0xf4]
mov dword [ebp - 0x1a0], eax
mov ecx, dword [ebp - 0x1a0]
add ecx, 1
mov dword [ebp - 0x1a4], ecx
mov edx, dword [ebp - 0x1a0]
mov al, byte [edx]
mov byte [ebp - 0x1a5], al
add dword [ebp - 0x1a0], 1
cmp byte [ebp - 0x1a5], 0
jne 0x4125ac
mov ecx, dword [ebp - 0x1a0]
sub ecx, dword [ebp - 0x1a4]
mov dword [ebp - 0x1ac], ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
mov eax, dword [ebp - 0x1ac]
push eax
lea ecx, [ebp - 0xf4]
push ecx
call fcn.005b1d61
add esp, 0x10
push 0x62a748
lea ecx, [ebp - 0x164]
call fcn.0040be30
mov byte [ebp - 4], 7
push 0x62a74c
lea ecx, [ebp - 0x180]
call fcn.0040be30
mov byte [ebp - 4], 8
lea edx, [ebp - 0x164]
push edx
lea eax, [ebp - 0x180]
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.004fc450
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x180]
call fcn.0040bf30
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x164]
call fcn.0040bf30
lea ecx, [ebp - 0x70]
call fcn.0040be10
push eax
push 0x62a750
mov edx, dword [ebp - 0x38]
push edx
call fcn.005b1de3
add esp, 0xc
mov eax, dword [ebp - 0x38]
push eax
push 1
push 2
push 0x62a754
call fcn.005b1d61
add esp, 0x10
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.005b1fa4
add esp, 4
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040be10
push eax
call fcn.0051c6c0
add esp, 8
push 0x62a758
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x54]
push ecx
call fcn.00404a60
add esp, 0xc
mov byte [ebp - 4], 9
cmp dword [ebp - 0x30], 0
ja 0x4126de
cmp dword [ebp - 0x34], 0x200000
jb 0x41270b
lea ecx, [ebp - 0x54]
call fcn.0040be10
push eax
call fcn.00504080
add esp, 4
push 0
lea ecx, [ebp - 0x54]
call fcn.0040be10
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040be10
push eax
call fcn.004ff170
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x54]
call fcn.0040bf30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.0040bf30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
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 4