Function at 0x4022fa
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x1bc
call fcn.004102a0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40235b
push ebx
call fcn.0040f42a
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.004102d0
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.004102d0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push 1
push 0x89f336
xor eax, eax
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4023df
push 0x8c
push 0x401b1a5
push 6
call fcn.0040f436
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4023f2
push ebx
call fcn.0040f42a
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x402402
push ebx
call fcn.0040f42a
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.004102d0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0
push closesocket
push 0
push dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40246c
push 0xec
push 0x401b1a5
push 6
call fcn.0040f436
add esp, 0xc
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40247f
push ebx
call fcn.0040f42a
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
push 0
mov ebx, 0x350
call fcn.004102f0
add esp, 4
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0x10]
push eax
push 0x3e8
mov eax, dword [ebp - 4]
test eax, eax
je 0x4024ad
add eax, 8
push eax
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.WININET.dll_InternetReadFile]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4024d7
push 0x14b
push 0x401b1a5
push 6
call fcn.0040f436
add esp, 0xc
push 0x80000301
push 0
push dword [ebp - 0x10]
push 0x80000005
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4024f4
mov eax, 0x89f2db
push eax
push 2
mov ebx, 0x1a0
call fcn.00410360
add esp, 0x1c
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
mov ecx, 2
call fcn.004022a3
add esp, 8
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x402530
push ebx
call fcn.0040f42a
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x402544
push ebx
call fcn.0040f42a
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
jne 0x402485
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40257e
push 0x208
push 0x401b1a5
push 6
call fcn.0040f436
add esp, 0xc
mov dword [ebp - 0x18], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4025aa
push 0x222
push 0x401b1a5
push 6
call fcn.0040f436
add esp, 0xc
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4025c4
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040f424
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4025c9
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4025da
push ebx
call fcn.0040f42a
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4025ea
push ebx
call fcn.0040f42a
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4