Function at 0x414970
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.0041add0
mov eax, dword [0x42f4cc]
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.00408510
push edi
mov ecx, ebx
call fcn.00414450
test eax, eax
jne 0x4149d4
mov eax, SysReAllocString
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1428]
xor ecx, ebp
call fcn.004199fa
mov esp, ebp
pop ebp
ret 0x10
mov ecx, ebx
call fcn.00413970
test eax, eax
je 0x414cb6
mov eax, dword [ebx + 0x44]
test eax, eax
jne 0x414c27
mov eax, dword [ebp + 0x14]
test eax, eax
mov ecx, 0x4400010
jne 0x4149ff
mov ecx, 0x4600010
mov eax, dword [ebx + 0x28]
push 0
push ecx
mov ecx, dword [ebx + 8]
push 0x42f484
push 0
push str.HTTP_1.0
push eax
push 0x42a5e4
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
test eax, eax
mov dword [ebx + 0xc], eax
je 0x414ca6
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x414aa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov dword [ebx + 0x54], eax
call fcn.00413920
mov ebx, dword [ebx + 0x54]
sub ebx, 0x2ee2
je 0x414a84
sub ebx, 5
je 0x414a68
sub ebx, 0x16
jne 0x414cb6
mov eax, reloc.OLEAUT32.dll_VariantClear
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1428]
xor ecx, ebp
call fcn.004199fa
mov esp, ebp
pop ebp
ret 0x10
mov eax, VariantCopy
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1428]
xor ecx, ebp
call fcn.004199fa
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 0x414ca6
mov eax, dword [esp + 0x20]
cmp eax, 0xc8
je 0x414b6b
cmp eax, 0x12c
jbe 0x414caf
cmp eax, 0x12e
ja 0x414caf
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 0x414ca6
lea edx, [esp + 0x28]
push edx
lea ecx, [ebx + 0x4c]
call fcn.0040c9b0
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.004199fa
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebx + 0x44]
test eax, eax
jne 0x414c27
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 0x414ba0
mov eax, dword [ebx + 0x44]
test eax, eax
mov dword [esp + 0x14], 0
jne 0x414c27
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 0x414ca6
mov ecx, dword [esp + 0x14]
test ecx, ecx
jbe 0x414c6f
mov edx, dword [esi]
add edx, ecx
cmp edx, edi
ja 0x414c4a
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 0x414c6f
mov edi, dword [esp + 0x24]
mov esi, ecx
jmp 0x414ba0
mov ecx, ebx
call fcn.00413920
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1428]
xor ecx, ebp
call fcn.004199fa
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.004199fa
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x54], eax
mov ecx, ebx
call fcn.00413920
mov ecx, dword [esp + 0x1434]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.004199fa
mov esp, ebp
pop ebp
ret 0x10