Function at 0x4b9db0
Capabilities:
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
mov eax, 0x805c
call fcn.00498090
mov eax, dword [0x61c850]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
mov dword [ebp - 0x8034], ecx
mov eax, dword [ebp - 0x8034]
mov dword [ebp - 0x8038], eax
mov ecx, dword [ebp - 0x8038]
cmp dword [ecx + 0x70], 0
jne 0x4b9dfd
mov edx, dword [ebp - 0x8038]
cmp dword [edx + 0x74], 0
jne 0x4b9dfd
mov ecx, dword [ebp - 0x8034]
call fcn.004b9bf0
cmp dword [ebp + 0xc], 0
jle 0x4b9e4b
mov eax, dword [ebp + 0xc]
cdq
mov ecx, dword [ebp - 0x8034]
mov dword [ebp - 0x803c], ecx
mov dword [ebp - 0x8044], eax
mov dword [ebp - 0x8040], edx
mov edx, dword [ebp - 0x803c]
mov eax, dword [edx + 0x74]
cmp eax, dword [ebp - 0x8040]
jl 0x4b9e4b
jg 0x4b9e43
mov ecx, dword [ebp - 0x803c]
mov edx, dword [ecx + 0x70]
cmp edx, dword [ebp - 0x8044]
jbe 0x4b9e4b
or eax, 0xffffffff
jmp 0x4ba24e
mov eax, dword [ebp - 0x8034]
mov dword [eax + 0x68], 0
mov dword [eax + 0x6c], 0
cmp dword [ebp + 8], 0
jne 0x4b9f7e
mov ecx, dword [ebp - 0x8034]
add ecx, 0x40
sub esp, 0x1c
mov edx, esp
mov dword [ebp - 0x8030], esp
push ecx
mov ecx, edx
call fcn.00405d60
mov dword [ebp - 0x8048], eax
mov ecx, dword [ebp - 0x8034]
call fcn.004b9190
mov dword [ebp - 0x804c], eax
mov eax, dword [ebp - 0x804c]
cdq
mov ecx, dword [ebp - 0x8034]
mov dword [ecx + 0x68], eax
mov dword [ecx + 0x6c], edx
mov edx, dword [ebp - 0x8034]
mov dword [ebp - 0x8050], edx
mov eax, dword [ebp - 0x8050]
cmp dword [eax + 0x6c], 0
jg 0x4b9edd
jl 0x4b9ed5
mov ecx, dword [ebp - 0x8050]
cmp dword [ecx + 0x68], 0
jae 0x4b9edd
or eax, 0xffffffff
jmp 0x4ba24e
push 0
push 0
push 0
mov edx, dword [ebp - 0x8034]
mov eax, dword [edx + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x8034]
mov dword [ebp - 0x8054], ecx
mov edx, dword [ebp - 0x8054]
cmp dword [edx + 0x6c], 0
jg 0x4b9f1e
jl 0x4b9f1c
mov eax, dword [ebp - 0x8054]
cmp dword [eax + 0x68], 0
ja 0x4b9f1e
jmp 0x4b9f6f
jmp 0x4b9f6f
mov eax, dword [ebp - 0x8034]
mov dword [eax + 0x60], 4
jmp 0x4b9fa0
mov ecx, dword [ebp - 0x8034]
mov edx, dword [ecx + 0x70]
add edx, 1
mov eax, dword [ecx + 0x74]
adc eax, 0
push edx
mov ecx, dword [ebp + 8]
call fcn.004613d0
mov ecx, eax
call fcn.00485fe0
mov ecx, dword [ebp - 0x8034]
movzx edx, byte [ecx + 0x108]
test edx, edx
jne 0x4ba1a7
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x8034]
mov ecx, dword [eax + 0x110]
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x8020]
push ecx
mov edx, dword [ebp - 0x8034]
mov eax, dword [edx + 0xf4]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x8028], eax
cmp dword [ebp - 0x8028], 0
jne 0x4ba006
mov eax, 0xfffffff9
jmp 0x4ba24e
cmp dword [ebp - 0x10], 0
jne 0x4ba011
jmp 0x4ba1a7
mov ecx, dword [ebp - 0x10]
mov byte [ebp + ecx - 0x8020], 0
mov dword [ebp - 0x8024], 0
mov dword [ebp - 8], 0x1000000
cmp dword [ebp + 8], 0
je 0x4ba053
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x8020]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x8024], eax
jmp 0x4ba07a
push 0
lea ecx, [ebp - 0x8024]
push ecx
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x8020]
push eax
mov ecx, dword [ebp - 0x8034]
mov edx, dword [ecx + 0xf8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x8024]
xor ecx, ecx
mov edx, dword [ebp - 0x8034]
add eax, dword [edx + 0x68]
adc ecx, dword [edx + 0x6c]
mov edx, dword [ebp - 0x8034]
mov dword [edx + 0x68], eax
mov dword [edx + 0x6c], ecx
mov eax, dword [ebp - 0x8034]
mov dword [eax + 0x60], 4
mov ecx, dword [ebp - 0x8034]
mov dword [ebp - 0x8058], ecx
mov edx, dword [ebp - 0x8058]
cmp dword [edx + 0x74], 0
jl 0x4ba180
jg 0x4ba0d5
mov eax, dword [ebp - 0x8058]
cmp dword [eax + 0x70], 0
jbe 0x4ba180
mov ecx, dword [ebp - 0x8034]
push 0
push 0x64
mov edx, dword [ecx + 0x6c]
push edx
mov eax, dword [ecx + 0x68]
push eax
call fcn.004995e0
mov ecx, dword [ebp - 0x8034]
mov esi, dword [ecx + 0x74]
push esi
mov ecx, dword [ecx + 0x70]
push ecx
push edx
push eax
call fcn.0049a200
mov dword [ebp - 0x802c], eax
mov edx, dword [ebp - 0x8034]
cmp dword [edx + 0x11c], 0
je 0x4ba14a
mov eax, dword [ebp - 0x802c]
push eax
mov ecx, dword [ebp - 0x8034]
mov edx, dword [ecx + 0x124]
push edx
mov eax, dword [ebp - 0x8034]
mov ecx, dword [eax + 0x120]
push ecx
mov edx, dword [ebp - 0x8034]
mov eax, dword [edx + 0x11c]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0x8034]
cmp dword [ecx + 0x114], 0
je 0x4ba180
mov edx, dword [ebp - 0x8034]
mov eax, dword [edx + 0x118]
push eax
mov ecx, dword [ebp - 0x802c]
push ecx
push 1
mov edx, dword [ebp - 0x8034]
mov eax, dword [edx + 0x114]
call eax
add esp, 0xc
mov ecx, dword [ebp - 0x8034]
cmp dword [ecx + 0x10c], 0
je 0x4ba1a2
mov edx, dword [ebp - 0x8034]
mov eax, dword [edx + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4b9fa0
mov ecx, dword [ebp - 0x8034]
mov dword [ebp - 0x805c], ecx
mov edx, dword [ebp - 0x805c]
cmp dword [edx + 0x74], 0
jg 0x4ba1e5
jl 0x4ba1cd
mov eax, dword [ebp - 0x805c]
cmp dword [eax + 0x70], 0
jae 0x4ba1e5
mov ecx, dword [ebp - 0x8034]
mov edx, dword [ebp - 0x8034]
mov eax, dword [edx + 0x68]
mov dword [ecx + 0x70], eax
mov edx, dword [edx + 0x6c]
mov dword [ecx + 0x74], edx
mov eax, dword [ebp - 0x8034]
mov ecx, dword [eax + 0xf8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x8034]
mov dword [edx + 0x60], 3
mov eax, dword [ebp - 0x8034]
cmp dword [eax + 0x114], 0
je 0x4ba236
mov ecx, dword [ebp - 0x8034]
mov edx, dword [ecx + 0x118]
push edx
push 0
push 2
mov eax, dword [ebp - 0x8034]
mov ecx, dword [eax + 0x114]
call ecx
add esp, 0xc
mov ecx, dword [ebp - 0x8034]
call fcn.004b9400
mov ecx, dword [ebp - 0x8034]
call fcn.004ba260
xor eax, eax
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00493f9c
mov esp, ebp
pop ebp
ret 8