Function at 0x407c80
Capabilities:
Connect to http server
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a8b1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2d4c
call fcn.00433c00
mov eax, dword [0x448050]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edx, dword [section..data]
mov dword [ebp - 0x2ca8], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x2ca0], ecx
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x2cac], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x2cb0], eax
push 0x3ff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x823]
push ebx
push ecx
mov dword [ebp - 0x2cc8], 1
mov dword [ebp - 0x2cb8], ebx
mov dword [ebp - 0x2cc0], ebx
mov dword [ebp - 0x2cc4], ebx
mov dword [ebp - 0x2c9c], ebx
mov dword [ebp - 0x2cbc], ebx
mov byte [ebp - 0x824], bl
call fcn.00427020
mov edx, dword [0x43f738]
mov eax, dword [0x43f73c]
lea ecx, [ebp - 0x20]
add esp, 0xc
mov dword [ebp - 0x2ca4], ebx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2cd0], ebx
mov dword [ebp - 0x2cd4], ecx
call fcn.00406fc0
mov edi, eax
cmp edi, ebx
je 0x407dba
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
mov dword [ebp - 0x2c98], eax
cmp eax, 0x3fffffff
jg 0x407dba
add eax, eax
call fcn.00433400
mov esi, esp
mov dword [ebp - 0x10], esp
cmp esi, ebx
je 0x407dba
mov eax, dword [ebp - 0x2c98]
push eax
push esi
push 0xffffffffffffffff
push edi
push ebx
xor edx, edx
push 3
mov word [esi], dx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x407dbc
xor eax, eax
lea ecx, [ebp - 0x2cb4]
push ecx
mov ecx, eax
call fcn.00405cd0
lea eax, [ebp - 0x2c94]
mov byte [ebp - 4], 2
call fcn.0040c4e0
mov ecx, 2
lea eax, [ebp - 0x2c94]
call fcn.0040c5f0
lea eax, [ebp - 0x2c94]
mov byte [ebp - 4], 3
call fcn.0040c4e0
mov ecx, dword [ebp - 0x2ca8]
lea edx, [ebp - 0x2c94]
push edx
call fcn.0040bd30
cmp eax, ebx
jne 0x407e2a
lea ecx, [ebp - 0x2d28]
call fcn.004262c3
push 0x443e6c
lea eax, [ebp - 0x2d28]
push eax
call fcn.00428d4f
lea eax, [ebp - 0x2c52]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407e33
sub eax, edx
lea ecx, [ebp - 0x2c52]
sar eax, 1
push ecx
lea edx, [ebp - 0x2cac]
push edx
mov ebx, eax
call fcn.00405be0
movzx esi, word [ebp - 0x848]
lea eax, [ebp - 0x184a]
push eax
lea ecx, [ebp - 0x284c]
push ecx
push str._s_s
lea edi, [ebp - 0x2cb0]
call fcn.0040b730
mov edx, dword [ebp - 0x2cb4]
add esp, 0xc
push 0
push 0
push 0
push 1
push edx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x2cb8], eax
test eax, eax
jne 0x407eba
lea ecx, [ebp - 0x2d40]
call fcn.004262c3
push 0x443e6c
lea eax, [ebp - 0x2d40]
push eax
call fcn.00428d4f
mov ecx, dword [ebp - 0x2cac]
push 0
push 0
push 3
push 0x43f498
push 0x43f498
push esi
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x2cc0], eax
test eax, eax
jne 0x407eff
lea ecx, [ebp - 0x2d58]
call fcn.004262c3
push 0x443e6c
lea edx, [ebp - 0x2d58]
push edx
call fcn.00428d4f
mov edx, dword [ebp - 0x2cb0]
push 0
push 0x84400000
lea ecx, [ebp - 0x2cd4]
push ecx
push 0x43f498
push str.HTTP_1.0
push edx
push 0x43f760
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
mov dword [ebp - 0x2cc4], ebx
test ebx, ebx
jne 0x407f52
lea ecx, [ebp - 0x2cec]
call fcn.004262c3
push 0x443e6c
lea eax, [ebp - 0x2cec]
push eax
call fcn.00428d4f
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x407f81
lea ecx, [ebp - 0x2d4c]
call fcn.004262c3
push 0x443e6c
lea ecx, [ebp - 0x2d4c]
push ecx
call fcn.00428d4f
push 0
lea edx, [ebp - 0x2c9c]
push edx
lea eax, [ebp - 0x2cbc]
push eax
push 0x20000013
push ebx
mov dword [ebp - 0x2c9c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x407fc7
lea ecx, [ebp - 0x2d04]
call fcn.004262c3
push 0x443e6c
lea ecx, [ebp - 0x2d04]
push ecx
call fcn.00428d4f
mov eax, dword [ebp - 0x2cbc]
add eax, 0xffffff38
cmp eax, 0x69
ja case.0x407fde.207
movzx edx, byte [eax + 0x408264]
jmp dword [edx*4 + 0x40825c]
lea ecx, [ebp - 0x2d34]
call fcn.004262c3
push 0x443e6c
lea eax, [ebp - 0x2d34]
push eax
call fcn.00428d4f
push 0x3ff
xor esi, esi
lea ecx, [ebp - 0x423]
push esi
push ecx
mov dword [ebp - 0x2c98], 1
mov byte [ebp - 0x424], 0
call fcn.00427020
add esp, 0xc
push esi
lea edx, [ebp - 0x2ca8]
push edx
lea eax, [ebp - 0x424]
push eax
push 5
mov edi, 0x400
push ebx
mov dword [ebp - 0x2ca8], edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x408058
mov dword [ebp - 0x2c98], esi
jmp 0x408069
lea ecx, [ebp - 0x424]
push ecx
call fcn.004253dd
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2ca0]
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x2ca0], ecx
test ecx, ecx
je 0x4080c0
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x2ca4], eax
cmp eax, 0xffffffff
jne 0x4080c0
lea ecx, [ebp - 0x2d1c]
call fcn.004262c3
push 0x443e6c
lea edx, [ebp - 0x2d1c]
push edx
call fcn.00428d4f
cmp dword [ebp - 0x2c98], 0
je 0x4080cf
cmp esi, edi
jae 0x4080cf
mov edi, esi
lea eax, [ebp - 0x2c9c]
push eax
push edi
lea ecx, [ebp - 0x824]
push ecx
push ebx
mov dword [ebp - 0x2c9c], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40810f
lea ecx, [ebp - 0x2ce0]
call fcn.004262c3
push 0x443e6c
lea edx, [ebp - 0x2ce0]
push edx
call fcn.00428d4f
mov eax, dword [ebp - 0x2c9c]
test eax, eax
je 0x408194
cmp dword [ebp - 0x2ca0], 0
mov dword [ebp - 0x2ccc], 0
je 0x408170
push 0
lea ecx, [ebp - 0x2ccc]
push ecx
push eax
mov eax, dword [ebp - 0x2ca4]
lea edx, [ebp - 0x824]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x40816a
lea ecx, [ebp - 0x2cf8]
call fcn.004262c3
push 0x443e6c
lea ecx, [ebp - 0x2cf8]
push ecx
call fcn.00428d4f
mov eax, dword [ebp - 0x2c9c]
cmp dword [ebp - 0x2c98], 0
je 0x40818c
sub esi, eax
je 0x408194
mov edi, 0x400
cmp esi, 0x400
jae 0x40818c
mov edi, esi
test eax, eax
jne 0x4080cf
cmp dword [ebp - 0x2c98], 0
je 0x4081d3
test esi, esi
je 0x4081d3
lea ecx, [ebp - 0x2d10]
call fcn.004262c3
push 0x443e6c
lea edx, [ebp - 0x2d10]
push edx
call fcn.00428d4f
mov dword [ebp - 0x2cc8], 0
mov eax, 0x4081cd
ret
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
je 0x4081e0
push ebx
call esi
mov eax, dword [ebp - 0x2cc0]
test eax, eax
je 0x4081ed
push eax
call esi
mov eax, dword [ebp - 0x2cb8]
test eax, eax
je 0x4081fa
push eax
call esi
mov esi, dword [ebp - 0x2ca4]
test esi, esi
je 0x408212
push esi
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x2cb4]
call fcn.00405530
lea eax, [ebp - 0x2cb0]
call fcn.00405530
lea eax, [ebp - 0x2cac]
call fcn.00405530
mov eax, dword [ebp - 0x2cc8]
lea esp, [ebp - 0x2d6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00424761
mov esp, ebp
pop ebp
ret