Function at 0x404e60
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ca98
mov eax, dword fs:[0]
push eax
mov eax, 0x1020
call fcn.00510b10
mov eax, dword [0x588fc8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 0xc]
movzx edi, word [ebp + 0x10]
mov dword [ebp - 0x101c], eax
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1014], ecx
mov dword [ebp - 0x1018], edx
mov dword [ebp - 0x1020], eax
mov dword [ebp - 0x102c], ebx
call fcn.00420ad8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x404ee2
push 0x80004005
call fcn.00401410
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x101c]
add eax, 0x10
mov dword [ecx], eax
push ebx
push ebx
push ebx
push ebx
push str.User_Agent
mov dword [ebp - 4], ebx
mov dword [ebp - 0x102c], 1
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x1028], eax
cmp eax, ebx
je 0x405091
push ebx
push ebx
push 3
push str.HTTP_1.1
push ebx
push edi
push esi
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
mov dword [ebp - 0x1024], esi
cmp esi, ebx
je 0x405091
mov edx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x1018]
push ebx
push 0x801000
push ebx
push ebx
push str.HTTP_1.1
push edx
push eax
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, ebx
je 0x4050a8
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp - 0x1020]
push ecx
push edx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push 0x1000
lea eax, [ebp - 0x1010]
push ebx
push eax
call fcn.0050f220
add esp, 0xc
lea ecx, [ebp - 0x1014]
push ecx
push 0x1000
lea edx, [ebp - 0x1010]
push edx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, ebx
je 0x405097
cmp dword [ebp - 0x1014], ebx
je 0x405097
call fcn.00420ad8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x404ed8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1018], eax
lea eax, [ebp - 0x1010]
mov dword [ebp - 4], 1
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405000
sub eax, edx
push eax
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x1018]
call fcn.00402da0
mov esi, dword [ebp - 0x1018]
mov eax, dword [esi - 0xc]
mov ecx, dword [ebp - 0x101c]
push eax
push esi
mov dword [ebp - 4], 2
call fcn.00402fc0
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405058
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x1000
lea ecx, [ebp - 0x1010]
push ebx
push ecx
call fcn.0050f220
add esp, 0xc
lea edx, [ebp - 0x1014]
push edx
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, ebx
jne 0x404fba
jmp 0x405097
mov edi, dword [ebp - 0x1020]
cmp edi, ebx
je 0x4050a2
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [ebp - 0x1024]
cmp esi, ebx
je 0x4050b3
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x1028]
cmp eax, ebx
je 0x4050c4
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x101c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050e65d
mov esp, ebp
pop ebp
ret