Function at 0x404930
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.00414f90
mov eax, dword [0x42482c]
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.004036c0
push edi
mov ecx, ebx
call fcn.004047b0
test eax, eax
jne 0x404994
mov eax, SysReAllocString
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1428]
xor ecx, ebp
call fcn.004145af
mov esp, ebp
pop ebp
ret 0x10
mov ecx, ebx
call fcn.004037e0
test eax, eax
je 0x404c76
mov eax, dword [ebx + 0x44]
test eax, eax
jne 0x404be7
mov eax, dword [ebp + 0x14]
test eax, eax
mov ecx, 0x4400010
jne 0x4049bf
mov ecx, 0x4600010
mov eax, dword [ebx + 0x28]
push 0
push ecx
mov ecx, dword [ebx + 8]
push 0x424554
push 0
push str.HTTP_1.0
push eax
push 0x41f504
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
test eax, eax
mov dword [ebx + 0xc], eax
je 0x404c66
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x404a60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov dword [ebx + 0x54], eax
call fcn.004034e0
mov ebx, dword [ebx + 0x54]
sub ebx, 0x2ee2
je 0x404a44
sub ebx, 5
je 0x404a28
sub ebx, 0x16
jne 0x404c76
mov eax, reloc.OLEAUT32.dll_VariantClear
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1428]
xor ecx, ebp
call fcn.004145af
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.004145af
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 0x404c66
mov eax, dword [esp + 0x20]
cmp eax, 0xc8
je 0x404b2b
cmp eax, 0x12c
jbe 0x404c6f
cmp eax, 0x12e
ja 0x404c6f
xor eax, eax
push eax
mov byte [esp + 0x2c], 0
mov ecx, pe_nt_image_headers32
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 0x404c66
lea edx, [esp + 0x28]
push edx
lea ecx, [ebx + 0x4c]
call fcn.00404770
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.004145af
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebx + 0x44]
test eax, eax
jne 0x404be7
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 0x404b60
mov eax, dword [ebx + 0x44]
test eax, eax
mov dword [esp + 0x14], 0
jne 0x404be7
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 0x404c66
mov ecx, dword [esp + 0x14]
test ecx, ecx
jbe 0x404c2f
mov edx, dword [esi]
add edx, ecx
cmp edx, edi
ja 0x404c0a
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 0x404c2f
mov edi, dword [esp + 0x24]
mov esi, ecx
jmp 0x404b60
mov ecx, ebx
call fcn.004034e0
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1428]
xor ecx, ebp
call fcn.004145af
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.004145af
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x54], eax
mov ecx, ebx
call fcn.004034e0
mov ecx, dword [esp + 0x1434]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.004145af
mov esp, ebp
pop ebp
ret 0x10