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

Disassembly:
push 0xffffffffffffffff
push 0x4ec268
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x50]
test esi, esi
je 0x458f06
call fcn.004062d0
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible__Win32_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x44], 0
test edi, edi
je 0x458f06
lea eax, [esp + 0x14]
push eax
mov ecx, str.clients1.google.com
call fcn.0045ec30
mov ecx, dword [esp + 0x14]
push 0
push 0x4000000
push 3
push 0x506c24
push 0x506c24
push 0x50
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
mov dword [esp + 0x24], ebx
test ebx, ebx
jne 0x458deb
mov byte [esp + 0x44], al
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x458ddf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x458f06
mov ecx, dword [esp + 0x4c]
push 0
push 0x4080000
push 0x52c174
push 0
push 0
push ecx
push 0x50bc18
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebp, eax
mov dword [esp + 0x38], ebp
mov byte [esp + 0x44], 3
test ebp, ebp
jne 0x458e52
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x458f03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x458f03
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x458eee
push 0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x34]
push edx
push 0x20000013
push ebp
mov dword [esp + 0x3c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x458eee
cmp dword [esp + 0x2c], 0xc8
jne 0x458eee
lea esi, [esp + 0x20]
call fcn.0044bc50
lea esi, [esp + 0x18]
call fcn.0044bc50
mov byte [esp + 0x44], 5
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x4000
or eax, ecx
jge 0x458ed8
mov eax, 0x4000
lea ecx, [esp + 0x18]
call fcn.0044c8f0
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x458f1c
lea eax, [esp + 0x18]
call fcn.0041f720
lea eax, [esp + 0x20]
call fcn.0041f720
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call esi
push ebx
call esi
lea ecx, [esp + 0x14]
call fcn.0045ef50
push edi
call esi
xor al, al
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [esp + 0x1c]
push eax
push 0x4000
push esi
push ebp
mov dword [esp + 0x2c], 0
call edi
test eax, eax
je 0x458f70
lea esp, [esp]
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x458f70
push esi
lea ebx, [esp + 0x24]
call fcn.0044c670
lea ecx, [esp + 0x1c]
push ecx
push 0x4000
push esi
push ebp
mov dword [esp + 0x2c], 0
call edi
mov ebx, dword [esp + 0x24]
test eax, eax
jne 0x458f40
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x30]
push edx
call fcn.0045dee0
mov edi, dword [esp + 0x50]
mov byte [esp + 0x44], 6
call fcn.00403900
lea ecx, [esp + 0x30]
call fcn.0045ef50
lea eax, [esp + 0x18]
call fcn.0041f720
lea eax, [esp + 0x20]
call fcn.0041f720
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call esi
push ebx
call esi
lea ecx, [esp + 0x14]
call fcn.0045ef50
mov eax, dword [esp + 0x34]
push eax
call esi
mov al, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret