Function at 0x427c4c
Capabilities:
Check http status code
Connect to http server
Create http request
Get http content length
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f800b
push eax
mov dword fs:[0], esp
sub esp, 0x634
push ebx
push esi
mov esi, ecx
mov al, byte [esi + 0x86]
xor ebx, ebx
cmp al, bl
mov dword [esi + 0x8c], ebx
jne 0x42809e
cmp byte [esi + 0x88], bl
mov ecx, 0x52019c
jne 0x427c77
mov ecx, 0x520198
mov eax, dword [esi + 0x64]
push edi
mov edi, 0x10
cmp eax, edi
jb 0x427c89
mov eax, dword [esi + 0x50]
jmp 0x427c8c
lea eax, [esi + 0x50]
push ecx
push eax
call fcn.004c3472
add esp, 8
push 0xffffffffffffffff
mov dword [esi + 0x10], eax
push ebx
lea eax, [esi + 0x30]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.00401510
mov dword [esp + 0x648], ebx
cmp byte [esi + 0x88], bl
je 0x427d0f
mov ecx, dword [esi + 0x10]
push 2
push ebx
push ecx
call fcn.004c3beb
mov edx, dword [esi + 0x10]
push edx
call fcn.004c505c
push eax
lea eax, [esp + 0x54]
push str.offset_d
push eax
call fcn.004c2e53
lea eax, [esp + 0x5c]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x427cf7
sub eax, edx
push eax
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040d1f0
cmp dword [esi + 0x10], ebx
jne 0x427d50
push 1
push esi
mov edx, str.Failed_to_open_local_file
call fcn.00427a80
cmp dword [esp + 0x3c], edi
jb 0x42809d
mov edx, dword [esp + 0x28]
push edx
call fcn.004c2c15
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x634]
mov dword fs:[0], ecx
add esp, 0x640
ret
push ebp
mov ebp, dword [sym.imp.WININET.dll_InternetQueryOptionA]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x49
push ebx
mov dword [esp + 0x24], 8
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], 4
call ebp
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x14]
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
jae 0x427d96
push 4
lea eax, [esp + 0x18]
push eax
push 0x49
push ebx
call edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x4a
push ebx
mov dword [esp + 0x20], ebx
call ebp
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jae 0x427dbf
push 4
lea ecx, [esp + 0x18]
push ecx
push 0x4a
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_4.0__compatible__zylom_
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp byte [esi + 0x86], bl
mov dword [esi + 4], eax
jne 0x42807b
cmp eax, ebx
je 0x42807b
mov ecx, dword [esi + 0x2c]
mov edi, 0x10
cmp ecx, edi
jb 0x427df6
mov ecx, dword [esi + 0x18]
jmp 0x427df9
lea ecx, [esi + 0x18]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp byte [esi + 0x86], bl
mov dword [esi + 8], eax
jne 0x428063
cmp eax, ebx
je 0x428063
cmp dword [esp + 0x40], edi
mov ecx, dword [esp + 0x2c]
jae 0x427e2e
lea ecx, [esp + 0x2c]
push ebx
push ebx
push ebx
push ebx
push str.HTTP_1.1
push ecx
push 0x520114
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp byte [esi + 0x86], bl
mov dword [esi + 0xc], eax
jne 0x42804b
cmp eax, ebx
je 0x42804b
push ebx
push ebx
push ebx
push ebx
push eax
mov byte [esi + 0x85], 1
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp byte [esi + 0x86], bl
jne 0x428033
cmp eax, ebx
je 0x428033
mov ecx, dword [esi + 0xc]
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ebp, [esi + 0x8c]
push ebp
push 0x20000013
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 4
call edi
cmp byte [esi + 0x86], bl
jne 0x42801b
cmp eax, ebx
je 0x42801b
mov eax, dword [ebp]
cmp eax, 0xc8
jb 0x427fed
cmp eax, 0x12c
jae 0x427fed
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ebp, [esi + 0x90]
push ebp
push 0x20000005
push ecx
mov dword [esp + 0x2c], 4
mov byte [esi + 0x8a], bl
call edi
cmp dword [ebp], ebx
jne 0x427f16
mov edx, dword [esi + 0x98]
mov dword [ebp], edx
jmp 0x427f1d
mov byte [esi + 0x8a], 1
cmp byte [esi + 0x88], bl
mov dword [esp + 0x24], ebx
je 0x427f36
call fcn.00427b00
test al, al
je 0x427fca
cmp byte [esi + 0x86], bl
jne 0x427f8f
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
mov edx, dword [esi + 0xc]
lea eax, [esp + 0x24]
push eax
push 0x400
lea ecx, [esp + 0x24c]
push ecx
push edx
call edi
test eax, eax
je 0x427fbd
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x427f8f
add dword [esi + 0x94], eax
mov ecx, dword [esi + 0x10]
push ecx
push eax
lea edx, [esp + 0x24c]
push 1
push edx
call fcn.004c3870
mov al, byte [esi + 0x86]
add esp, 0x10
cmp al, bl
je 0x427f44
cmp byte [esi + 0x8a], bl
je 0x427fd8
mov eax, dword [esi + 0x94]
cmp eax, dword [ebp]
je 0x427fd8
push str.Connection_closed.
lea ecx, [esi + 0x68]
call fcn.004174c0
lea ecx, [esp + 0x28]
call fcn.004013a0
jmp 0x42809c
push 1
push esi
mov edx, str.InternetReadFile_failed
call fcn.00427a80
lea ecx, [esp + 0x28]
call fcn.004013a0
jmp 0x42809c
lea ecx, [esp + 0x28]
mov byte [esi + 0x87], 1
call fcn.004013a0
jmp 0x42809c
push eax
lea ecx, [esp + 0x48]
push str.HTTP_Status_Error:__d
push ecx
call fcn.004c2e53
add esp, 0xc
lea edx, [esp + 0x44]
push edx
lea ecx, [esi + 0x68]
call fcn.004174c0
lea ecx, [esp + 0x28]
call fcn.004013a0
jmp 0x42809c
push 1
push esi
mov edx, str.HttpQueryInfo_failed
call fcn.00427a80
lea ecx, [esp + 0x28]
call fcn.004013a0
jmp 0x42809c
push 1
push esi
mov edx, str.HttpSendRequest_failed
call fcn.00427a80
lea ecx, [esp + 0x28]
call fcn.004013a0
jmp 0x42809c
push 1
push esi
mov edx, str.HttpOpenRequest_failed
call fcn.00427a80
lea ecx, [esp + 0x28]
call fcn.004013a0
jmp 0x42809c
push 1
push esi
mov edx, str.InternetConnect_failed
call fcn.00427a80
lea ecx, [esp + 0x28]
call fcn.004013a0
jmp 0x42809c
push 1
push esi
mov edx, str.InternetOpen_failed
call fcn.00427a80
cmp dword [esp + 0x40], 0x10
jb 0x42809c
mov eax, dword [esp + 0x2c]
push eax
call fcn.004c2c15
add esp, 4
pop ebp
pop edi
mov ecx, dword [esp + 0x63c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x640
ret