Function at 0x428de0
Capabilities:
Check if file exists
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493a48
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4b81bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
test ecx, ecx
je 0x429023
test ebx, ebx
je 0x429023
mov edi, dword [ebp + 8]
test edi, edi
je 0x429023
push 0x4ba3ac
push 0x100
call fcn.00439e30
xor esi, esi
mov dword [ebp - 0x38], vtable.CxAutoArray_unsigned_char_.0
add esp, 8
mov dword [ebp - 0x34], esi
test eax, eax
je 0x428e53
mov esi, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], esi
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.004286d0
push 0x4aa88c
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edx
call fcn.004038a0
push edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004038a0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
call fcn.0042b220
add esp, 4
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x428eb6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x428ed5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x428eea
lea ecx, [ebp - 0x1c]
call fcn.0042ad50
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
sub esp, 0xc
lea ecx, [ebp - 0x24]
push 4
push 2
push 0x40000000
push edi
call fcn.00429ff0
mov edi, dword [ebp - 0x24]
test eax, eax
js 0x428fd4
cmp edi, 0xffffffff
je 0x428fd4
push 2
sub esp, 8
lea ecx, [ebp - 0x24]
call fcn.00429f30
mov ecx, ebx
call fcn.004341e0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebx + 0x10]
lea ecx, [ebp - 0x14]
push ecx
push 0x100
push esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
push dword [eax]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x428fd4
nop dword [eax]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42901c
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x428f97
call fcn.00406500
test eax, eax
js 0x428fd4
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x18], eax
jne 0x428fd4
add dword [ebp - 0x28], eax
lea ecx, [ebp - 0x14]
mov eax, dword [ebx + 0x10]
adc dword [ebp - 0x2c], 0
push ecx
push 0x100
push esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
push dword [eax]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x428f70
xor esi, esi
test edi, edi
je 0x428fe1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x429000
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x38]
call fcn.00424600
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 1
jmp 0x428fd6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret