Function at 0x411030
Capabilities:
Check http status code
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x142c
call fcn.00416c70
mov eax, dword [0x42b48c]
push ebx
xor eax, ebp
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x1430], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebx + 0x4c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], esi
call fcn.00404d70
push edi
mov ecx, ebx
call fcn.00410b10
test eax, eax
jne 0x411094
mov eax, SysReAllocString
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1428]
xor ecx, ebp
call fcn.00415d1a
mov esp, ebp
pop ebp
ret 0x10
mov ecx, ebx
call fcn.00410030
test eax, eax
je 0x411376
mov eax, dword [ebx + 0x44]
test eax, eax
jne 0x4112e7
mov eax, dword [ebp + 0x14]
test eax, eax
mov ecx, 0x4400010
jne 0x4110bf
mov ecx, 0x4600010
mov eax, dword [ebx + 0x28]
push 0
push ecx
mov ecx, dword [ebx + 8]
push 0x42b444
push 0
push str.HTTP_1.0
push eax
push 0x42615c
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
test eax, eax
mov dword [ebx + 0xc], eax
je 0x411366
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x411160
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov dword [ebx + 0x54], eax
call fcn.0040ffe0
mov ebx, dword [ebx + 0x54]
sub ebx, 0x2ee2
je 0x411144
sub ebx, 5
je 0x411128
sub ebx, 0x16
jne 0x411376
mov eax, reloc.OLEAUT32.dll_VariantClear
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1428]
xor ecx, ebp
call fcn.00415d1a
mov esp, ebp
pop ebp
ret 0x10
mov eax, SysStringLen
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1428]
xor ecx, ebp
call fcn.00415d1a
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebx + 0xc]
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
push 0x20000013
push ecx
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x411366
mov eax, dword [esp + 0x20]
cmp eax, 0xc8
je 0x41122b
cmp eax, 0x12c
jbe 0x41136f
cmp eax, 0x12e
ja 0x41136f
xor eax, eax
push eax
mov byte [esp + 0x2c], 0
mov ecx, 0x100
lea edi, [esp + 0x2d]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push 0x21
push ecx
mov dword [esp + 0x30], 0x400
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x411366
lea edx, [esp + 0x28]
push edx
lea ecx, [ebx + 0x4c]
call fcn.004091f0
mov eax, dword [ebx + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebx + 0xc], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1428]
xor ecx, ebp
call fcn.00415d1a
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebx + 0x44]
test eax, eax
jne 0x4112e7
xor eax, eax
mov ecx, 0x400
lea edi, [esp + 0x430]
rep stosd dword es:[edi], eax
mov edi, dword [esi]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edi
mov dword [esi], eax
jmp 0x411260
mov eax, dword [ebx + 0x44]
test eax, eax
mov dword [esp + 0x14], 0
jne 0x4112e7
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x14]
push edx
push 0xfff
lea eax, [esp + 0x438]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x411366
mov ecx, dword [esp + 0x14]
test ecx, ecx
jbe 0x41132f
mov edx, dword [esi]
add edx, ecx
cmp edx, edi
ja 0x41130a
mov edi, dword [esp + 0x10]
mov eax, ecx
shr ecx, 2
lea esi, [esp + 0x430]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edx, dword [ecx]
add esi, eax
add edx, eax
test eax, eax
mov dword [esp + 0x10], esi
mov dword [ecx], edx
jbe 0x41132f
mov edi, dword [esp + 0x24]
mov esi, ecx
jmp 0x411260
mov ecx, ebx
call fcn.0040ffe0
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1428]
xor ecx, ebp
call fcn.00415d1a
mov esp, ebp
pop ebp
ret 0x10
sub edi, dword [esi]
mov eax, edi
mov edi, dword [esp + 0x10]
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x430]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
add dword [ecx], eax
mov eax, dword [ebx + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [esp + 0x14]
xor ecx, ecx
cmp ecx, edx
sbb eax, eax
mov dword [ebx + 0xc], 0
and eax, reloc.OLEAUT32.dll_SysStringLen
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1428]
xor ecx, ebp
call fcn.00415d1a
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x54], eax
mov ecx, ebx
call fcn.0040ffe0
mov ecx, dword [esp + 0x1434]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.00415d1a
mov esp, ebp
pop ebp
ret 0x10