Function at 0x411d80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e790f
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
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 - 0x184], ecx
push 0x639a9c
mov eax, dword [ebp - 0x184]
add eax, 0x44
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.004041b0
add esp, 0xc
mov dword [ebp - 0x188], eax
mov edx, dword [ebp - 0x188]
mov dword [ebp - 0x18c], edx
mov dword [ebp - 4], 0
push 0x639a98
mov eax, dword [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x12c]
push ecx
call fcn.004041b0
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.004041b0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x12c]
call fcn.0040b640
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x110]
call fcn.0040b640
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x70]
call fcn.0040b660
mov byte [ebp - 4], 5
push 0x639aa0
lea ecx, [ebp - 0x2c]
call fcn.0040b520
push eax
call fcn.005bd438
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x411fe3
lea eax, [ebp - 0x148]
push eax
call fcn.00508960
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.0040b520
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.005bd516
add esp, 0x14
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x148]
call fcn.0040b640
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 0x411efc
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.005bd6b0
add esp, 0x10
push 0x639ab8
lea ecx, [ebp - 0x164]
call fcn.0040b540
mov byte [ebp - 4], 7
push 0x639abc
lea ecx, [ebp - 0x180]
call fcn.0040b540
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.00510470
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x180]
call fcn.0040b640
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x164]
call fcn.0040b640
lea ecx, [ebp - 0x70]
call fcn.0040b520
push eax
push 0x639ac0
mov edx, dword [ebp - 0x38]
push edx
call fcn.005bd732
add esp, 0xc
mov eax, dword [ebp - 0x38]
push eax
push 1
push 2
push 0x639ac4
call fcn.005bd6b0
add esp, 0x10
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.005bd8f3
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.0040b520
push eax
call fcn.00530270
add esp, 8
push 0x639ac8
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x54]
push ecx
call fcn.004041b0
add esp, 0xc
mov byte [ebp - 4], 9
cmp dword [ebp - 0x30], 0
ja 0x41202e
cmp dword [ebp - 0x34], 0x200000
jb 0x41205b
lea ecx, [ebp - 0x54]
call fcn.0040b520
push eax
call fcn.0050ba00
add esp, 4
push 0
lea ecx, [ebp - 0x54]
call fcn.0040b520
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040b520
push eax
call fcn.00506620
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x54]
call fcn.0040b640
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.0040b640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
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 4