Function at 0x47dd30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ebad6
mov eax, dword fs:[0]
push eax
sub esp, 0x714
mov eax, dword [0x51eed4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c8], ecx
mov dword [ebp - 0x6c4], 0
mov dword [ebp - 4], 2
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x5c8], esp
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x5cc], esp
lea eax, [ebp + 0xc]
push eax
call fcn.00402b70
mov dword [ebp - 0x6cc], eax
push esi
mov ecx, dword [ebp - 0x6c8]
mov edx, dword [ecx + 0x29c]
mov eax, dword [ebp - 0x6c8]
mov ecx, dword [eax + 0x29c]
mov edx, dword [edx]
mov eax, dword [edx + 0x40]
call eax
mov dword [ebp - 0x6d0], eax
mov ecx, dword [ebp - 0x6d0]
mov dword [ebp - 0x6d4], ecx
lea ecx, [ebp - 0x5bc]
call fcn.004897d0
mov dword [ebp - 0x6d8], eax
mov byte [ebp - 4], 3
lea edx, [ebp - 0x6c]
push edx
push str.filename
lea ecx, [ebp - 0x5bc]
call fcn.004897b0
mov ecx, eax
call fcn.00402230
mov byte [ebp - 4], 4
lea eax, [ebp - 0x50]
push eax
push str.length
lea ecx, [ebp - 0x5bc]
call fcn.004897b0
mov ecx, eax
call fcn.00402230
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x88]
push ecx
push str.fileid
lea ecx, [ebp - 0x5bc]
call fcn.004897b0
mov ecx, eax
call fcn.00402230
mov byte [ebp - 4], 6
lea edx, [ebp - 0xa8]
push edx
push 0
push str.hosts
lea ecx, [ebp - 0x5bc]
call fcn.004898a0
mov ecx, eax
call fcn.00402230
mov byte [ebp - 4], 7
mov dword [ebp - 0x4f8], 0x20000
mov dword [ebp - 0x4f4], 0
push 0xa
push 0
lea ecx, [ebp - 0x50]
call fcn.00402bd0
push eax
call fcn.004c1554
add esp, 0xc
mov dword [ebp - 0x4d4], eax
mov dword [ebp - 0x4d0], edx
push 0
push 0x20000
mov eax, dword [ebp - 0x4d0]
push eax
mov ecx, dword [ebp - 0x4d4]
push ecx
call fcn.004c1600
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x5c0], 0
mov dword [ebp - 0x8c], 0
lea ecx, [ebp - 0x2c]
call fcn.00402ab0
mov byte [ebp - 4], 8
push 0
push 0x20000
mov edx, dword [ebp - 0x4d0]
push edx
mov eax, dword [ebp - 0x4d4]
push eax
call fcn.004c1580
mov dword [ebp - 0x6e0], eax
mov dword [ebp - 0x6dc], edx
mov ecx, dword [ebp - 0x6e0]
or ecx, dword [ebp - 0x6dc]
je 0x47df12
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
push 0x4f2c04
lea edx, [ebp + 0x28]
lea ecx, [ebp - 0x5e8]
call fcn.00487390
mov dword [ebp - 0x6e4], eax
mov eax, dword [ebp - 0x6e4]
mov dword [ebp - 0x6e8], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x6e8]
call fcn.00480e10
push eax
lea ecx, [ebp - 0x8c]
push ecx
call fcn.004c126a
add esp, 0xc
mov dword [ebp - 0x4c8], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x5e8]
call fcn.00480cf0
mov dword [ebp - 0x5ec], 0x20000
mov edx, dword [ebp - 0x5ec]
push edx
call fcn.004c0518
add esp, 4
mov dword [ebp - 0x5f0], eax
cmp dword [ebp - 0x5f0], 0
je 0x47dfb9
mov eax, dword [ebp - 0x5ec]
push eax
push 0
mov ecx, dword [ebp - 0x5f0]
push ecx
call fcn.004bfe20
add esp, 0xc
mov edx, dword [ebp - 0x5f0]
mov dword [ebp - 0x6ec], edx
jmp 0x47dfc3
mov dword [ebp - 0x6ec], 0
mov eax, dword [ebp - 0x6ec]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x518], 0
xor ecx, ecx
mov dword [ebp - 0x517], ecx
mov dword [ebp - 0x513], ecx
mov dword [ebp - 0x50f], ecx
mov dword [ebp - 0x50b], ecx
mov dword [ebp - 0x507], ecx
mov dword [ebp - 0x503], ecx
mov dword [ebp - 0x4ff], ecx
lea ecx, [ebp - 0x4f0]
call fcn.00402ab0
mov byte [ebp - 4], 0xa
mov byte [ebp - 0x4c4], 0
push 0x3ff
push 0
lea edx, [ebp - 0x4c3]
push edx
call fcn.004bfe20
add esp, 0xc
call fcn.004898d0
mov edx, eax
lea ecx, [ebp - 0xc4]
call fcn.00489900
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x30]
sub eax, 1
cmp dword [ebp - 0x5c0], eax
jg 0x47e4af
push 0xa
lea ecx, [ebp - 0x4c4]
push ecx
mov edx, dword [ebp - 0x5c0]
push edx
call fcn.004e8ff0
add esp, 0xc
push 0x14
lea eax, [ebp - 0x518]
push eax
push str.downloadpiece
lea ecx, [ebp - 0xc4]
call fcn.00402bd0
mov esi, eax
lea ecx, [ebp - 0x60c]
push ecx
mov edx, dword [ebp - 0x6c8]
mov eax, dword [edx + 0x29c]
mov ecx, dword [ebp - 0x6c8]
mov ecx, dword [ecx + 0x29c]
mov edx, dword [eax]
mov eax, dword [edx + 0x14]
call eax
mov dword [ebp - 0x6f0], eax
mov ecx, dword [ebp - 0x6f0]
mov dword [ebp - 0x6f4], ecx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x6f4]
call fcn.00402bd0
mov edx, esi
mov ecx, eax
call fcn.00489c80
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x60c]
call fcn.00402bb0
push 0x14
lea edx, [ebp - 0x518]
push edx
lea eax, [ebp - 0x628]
push eax
call fcn.00477b00
add esp, 0xc
mov dword [ebp - 0x6f8], eax
mov ecx, dword [ebp - 0x6f8]
mov dword [ebp - 0x6fc], ecx
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x6fc]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00405f40
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x628]
call fcn.00402bb0
push str._user_downloadpiece.ashx_
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x644]
push ecx
call fcn.0040b3f0
add esp, 0xc
mov dword [ebp - 0x700], eax
mov edx, dword [ebp - 0x700]
mov dword [ebp - 0x704], edx
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x704]
push eax
lea ecx, [ebp - 0x4f0]
call fcn.00405f40
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x644]
call fcn.00402bb0
push str.appid
lea ecx, [ebp - 0x4f0]
call fcn.004093e0
lea ecx, [ebp - 0x660]
push ecx
mov edx, dword [ebp - 0x6c8]
mov eax, dword [edx + 0x29c]
mov ecx, dword [ebp - 0x6c8]
mov ecx, dword [ecx + 0x29c]
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x708], eax
mov ecx, dword [ebp - 0x708]
mov dword [ebp - 0x70c], ecx
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x70c]
push edx
lea ecx, [ebp - 0x4f0]
call fcn.004093b0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x660]
call fcn.00402bb0
push 0x4f2a04
lea ecx, [ebp - 0x4f0]
call fcn.004093e0
lea eax, [ebp - 0x67c]
push eax
mov ecx, dword [ebp - 0x6c8]
mov edx, dword [ecx + 0x29c]
mov eax, dword [ebp - 0x6c8]
mov ecx, dword [eax + 0x29c]
mov edx, dword [edx]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 0x710], eax
mov ecx, dword [ebp - 0x710]
mov dword [ebp - 0x714], ecx
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x714]
push edx
lea ecx, [ebp - 0x4f0]
call fcn.004093b0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x67c]
call fcn.00402bb0
push 0x4f29f8
lea ecx, [ebp - 0x4f0]
call fcn.004093e0
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x4f0]
call fcn.004093b0
push str.piecenumber
lea ecx, [ebp - 0x4f0]
call fcn.004093e0
lea ecx, [ebp - 0x4c4]
push ecx
lea ecx, [ebp - 0x4f0]
call fcn.004093e0
push 0x4f29e0
lea ecx, [ebp - 0x4f0]
call fcn.004093e0
lea edx, [ebp - 0xc4]
push edx
lea ecx, [ebp - 0x4f0]
call fcn.004093b0
push str.signature
lea ecx, [ebp - 0x4f0]
call fcn.004093e0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4f0]
call fcn.004093b0
push 0x16c
call fcn.004bff01
add esp, 4
mov dword [ebp - 0x684], eax
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x684], 0
je 0x47e354
push 0
lea edx, [ebp - 0x4f0]
lea ecx, [ebp - 0x6a0]
call fcn.00487390
mov dword [ebp - 0x718], eax
mov ecx, dword [ebp - 0x718]
mov dword [ebp - 0x71c], ecx
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x6c4]
or edx, 1
mov dword [ebp - 0x6c4], edx
mov eax, dword [ebp - 0x71c]
push eax
mov ecx, dword [ebp - 0x684]
call fcn.0047bba0
mov dword [ebp - 0x720], eax
jmp 0x47e35e
mov dword [ebp - 0x720], 0
mov ecx, dword [ebp - 0x720]
mov dword [ebp - 0x680], ecx
mov dword [ebp - 4], 0x13
mov edx, dword [ebp - 0x680]
push edx
lea ecx, [ebp - 0x5c4]
call fcn.00481160
mov dword [ebp - 4], 0x15
mov eax, dword [ebp - 0x6c4]
and eax, 1
je 0x47e3a7
and dword [ebp - 0x6c4], 0xfffffffe
lea ecx, [ebp - 0x6a0]
call fcn.00480cf0
push 0x4f2b8c
lea ecx, [ebp - 0x6bc]
call fcn.00480c70
mov byte [ebp - 4], 0x16
push 0
lea ecx, [ebp - 0x6bc]
push ecx
lea ecx, [ebp - 0x5c4]
call fcn.004bcb10
mov ecx, eax
call fcn.0047bd80
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x6bc]
call fcn.00480cf0
cmp dword [ebp - 0x4c8], 0
jne 0x47e42e
cmp dword [ebp - 0x8c], 0
je 0x47e42e
mov edx, dword [ebp - 0x8c]
push edx
push 1
lea ecx, [ebp - 0x5c4]
call fcn.004bcb10
mov ecx, eax
call fcn.0047e5c0
push eax
lea ecx, [ebp - 0x5c4]
call fcn.004bcb10
mov ecx, eax
call fcn.0047e5a0
push eax
call fcn.004c110b
add esp, 0x10
push 0x47bb80
push 0x4f2930
lea ecx, [ebp - 0x5c4]
call fcn.004bcb10
mov ecx, eax
call fcn.0047e5c0
imul eax, dword [ebp - 0x5c0]
xor ecx, ecx
push 0
push 0x400
push ecx
push eax
call fcn.004c05f0
push edx
push eax
push str.Total_Recieved:
push 0x522b20
call fcn.0040f920
add esp, 8
mov ecx, eax
call fcn.004806f0
push eax
call fcn.0040f920
add esp, 8
mov ecx, eax
call fcn.004806d0
mov edx, dword [ebp - 0x5c0]
add edx, 1
mov dword [ebp - 0x5c0], edx
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x5c4]
call fcn.00481eb0
jmp 0x47e041
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x6c0], eax
mov ecx, dword [ebp - 0x6c0]
push ecx
call fcn.004c0415
add esp, 4
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x8c]
push edx
call fcn.004c0f2d
add esp, 4
push str.__result_:true_
mov ecx, dword [ebp + 8]
call fcn.00480c70
mov eax, dword [ebp - 0x6c4]
or eax, 2
mov dword [ebp - 0x6c4], eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xc4]
call fcn.00402bb0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4f0]
call fcn.00402bb0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
call fcn.00402bb0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa8]
call fcn.00402bb0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x88]
call fcn.00402bb0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x50]
call fcn.00402bb0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
call fcn.00402bb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5bc]
call fcn.0047db70
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00402bb0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x28]
call fcn.00402bb0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004be1d6
mov esp, ebp
pop ebp
ret 0x3c