Function at 0x412560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da6df
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
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 - 0x184], ecx
push 0x6295cc
mov eax, dword [ebp - 0x184]
add eax, 0x44
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.00404a40
add esp, 0xc
mov dword [ebp - 0x188], eax
mov edx, dword [ebp - 0x188]
mov dword [ebp - 0x18c], edx
mov dword [ebp - 4], 0
push 0x6295c8
mov eax, dword [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00404a40
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.00404a40
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x12c]
call fcn.0040c050
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x110]
call fcn.0040c050
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x70]
call fcn.0040c070
mov byte [ebp - 4], 5
push 0x6295d0
lea ecx, [ebp - 0x2c]
call fcn.0040bf30
push eax
call fcn.005b0ac9
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4127c3
lea eax, [ebp - 0x148]
push eax
call fcn.004fffc0
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.0040bf30
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.005b0ba7
add esp, 0x14
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x148]
call fcn.0040c050
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 0x4126dc
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.005b0d41
add esp, 0x10
push 0x6295e8
lea ecx, [ebp - 0x164]
call fcn.0040bf50
mov byte [ebp - 4], 7
push 0x6295ec
lea ecx, [ebp - 0x180]
call fcn.0040bf50
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.004fb430
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x180]
call fcn.0040c050
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x164]
call fcn.0040c050
lea ecx, [ebp - 0x70]
call fcn.0040bf30
push eax
push 0x6295f0
mov edx, dword [ebp - 0x38]
push edx
call fcn.005b0dc3
add esp, 0xc
mov eax, dword [ebp - 0x38]
push eax
push 1
push 2
push 0x6295f4
call fcn.005b0d41
add esp, 0x10
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.005b0f84
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.0040bf30
push eax
call fcn.0051b730
add esp, 8
push 0x6295f8
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x54]
push ecx
call fcn.00404a40
add esp, 0xc
mov byte [ebp - 4], 9
cmp dword [ebp - 0x30], 0
ja 0x41280e
cmp dword [ebp - 0x34], 0x200000
jb 0x41283b
lea ecx, [ebp - 0x54]
call fcn.0040bf30
push eax
call fcn.00503060
add esp, 4
push 0
lea ecx, [ebp - 0x54]
call fcn.0040bf30
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040bf30
push eax
call fcn.004fe150
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x54]
call fcn.0040c050
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.0040c050
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
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 4