Function at 0x42c4f0
Capabilities:
Check http status code
Create http request
Download and write a file
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a5339
mov eax, dword fs:[0]
push eax
mov eax, 0x2754
call fcn.00476910
mov eax, dword [0x5564a4]
xor eax, esp
mov dword [esp + 0x2750], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5564a4]
xor eax, esp
push eax
lea eax, [esp + 0x2768]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov ecx, dword [0x55865c]
push 0
mov dword [esp + 0x2774], 2
call fcn.0043f4a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x40]
call eax
test eax, eax
jne 0x42c973
mov ecx, esi
call fcn.00428b90
test eax, eax
je 0x42c5f8
mov eax, dword [esp + 0x2778]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x2770], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c598
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x277c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x2770], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c5c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2780]
add eax, 0xfffffff0
mov dword [esp + 0x2770], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c5f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x42c9f7
push 0
push 0
push 0
push 0
push str.HTTP
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
je 0x42c56d
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
push 0x54acac
push 2
push esi
call edi
push 4
push 0x54acac
push 5
push esi
call edi
push 4
push 0x54acac
push 6
push esi
call edi
push 4
push 0x54acac
push 7
push esi
call edi
push 4
push 0x54acac
push 8
push esi
call edi
mov ebp, dword [esp + 0x2778]
mov ebx, dword [sym.imp.WININET.dll_InternetOpenUrlA]
push 0
push 0x84000000
push 0
push 0
push ebp
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x42c6d8
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x14]
call fcn.00428b90
test eax, eax
je 0x42c6c3
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x2778]
call fcn.00401640
lea ecx, [esp + 0x277c]
call fcn.00401640
lea ecx, [esp + 0x2780]
call fcn.00401640
xor eax, eax
jmp 0x42c9f7
push 0
push 0x84000000
push 0
push 0
push ebp
push esi
call ebx
mov edi, eax
test edi, edi
je 0x42c691
mov ebx, dword [esp + 0x14]
mov ecx, ebx
call fcn.00428b90
test eax, eax
jne 0x42c7d2
push 0x270f
push eax
lea ecx, [esp + 0x5d]
push ecx
mov byte [esp + 0x60], al
call fcn.00476f10
mov ebp, dword [sym.imp.WININET.dll_HttpQueryInfoA]
add esp, 0xc
push 0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x5c]
push eax
push 0x13
push edi
mov dword [esp + 0x38], 0x2710
call ebp
lea ecx, [esp + 0x54]
push ecx
call fcn.00476c03
add esp, 4
cmp eax, 0xc8
je 0x42c7e3
lea edx, [esp + 0x2c]
push 0x2e
push edx
call fcn.00427880
mov ecx, eax
call fcn.004276a0
push str._nErrCode_:
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x277c], 3
call fcn.00402be0
lea ecx, [esp + 0x60]
push ecx
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x2788], 4
call fcn.00402be0
mov eax, dword [eax]
push 0
push 0
push eax
mov byte [esp + 0x2794], 5
call fcn.00406520
add esp, 0x24
lea ecx, [esp + 0x1c]
call fcn.00401640
lea ecx, [esp + 0x14]
call fcn.00401640
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2770], 2
call fcn.00401640
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x54]
push eax
push str.HttpQueryInfo_Faile_ErrCode__s...
push ecx
call fcn.00427200
push eax
call fcn.00426f60
add esp, 0x10
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
jmp 0x42c698
xor eax, eax
xor ebx, ebx
push ebx
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov word [esp + 0x59], ax
mov byte [esp + 0x5b], al
lea eax, [esp + 0x3c]
push eax
push 5
push edi
mov byte [esp + 0x48], 0
mov dword [esp + 0x44], 0x20
call ebp
test eax, eax
je 0x42c840
lea ecx, [esp + 0x34]
push ecx
call fcn.00476c03
add esp, 4
mov dword [esp + 0x1c], eax
jmp 0x42c848
mov dword [esp + 0x1c], 0x3e8
mov edx, dword [esp + 0x277c]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x42c7d2
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], ebx
lea esp, [esp]
mov ecx, dword [esp + 0x14]
call fcn.00428b90
test eax, eax
jne 0x42c95b
push eax
push eax
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x42c95b
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [eax + 0x50]
push edx
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x42c95b
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x2c]
push edx
mov edx, dword [ecx + 0x50]
push eax
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42c95b
add ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x2780]
mov edx, dword [esp + 0x1c]
push 0
push eax
mov ecx, ebx
shr ecx, 0xa
push ecx
shr edx, 0xa
push edx
call fcn.00420900
mov ecx, eax
call fcn.0042bce0
cmp dword [esp + 0x18], 0
jne 0x42c880
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x2778]
call fcn.00401640
lea ecx, [esp + 0x277c]
call fcn.00401640
lea ecx, [esp + 0x2780]
call fcn.00401640
mov eax, 1
jmp 0x42c9f7
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42c698
mov eax, dword [esp + 0x2778]
add eax, 0xfffffff0
mov byte [esp + 0x2770], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c99e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x277c]
add eax, 0xfffffff0
mov byte [esp + 0x2770], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c9c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2780]
add eax, 0xfffffff0
mov dword [esp + 0x2770], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c9f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2768]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2750]
xor ecx, esp
call fcn.004752ab
add esp, 0x2760
ret 0xc