Function at 0x584a00
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 eax
mov eax, 0xd
add esp, 0xfffff004
push eax
dec eax
jne 0x584a09
mov eax, dword [ebp - 4]
add esp, 0xfffff844
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xd7bc], ebx
mov dword [ebp - 0xd7c0], ebx
mov dword [ebp - 0xd7b8], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 8]
call fcn.00573a10
mov eax, dword [ebp + 0xc]
call fcn.00573a10
mov eax, dword [ebp + 8]
call fcn.00573a10
xor eax, eax
push ebp
push 0x584e4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
push 0
push 0
push 0
push 0
push 0x584e60
call sub.wininet.dll_InternetOpenA
mov ebx, eax
test ebx, ebx
je 0x584e0f
push 0
push 0
push 3
mov eax, dword [ebp + 8]
call fcn.00573a20
push eax
mov eax, dword [ebp + 0xc]
call fcn.00573a20
push eax
push 0
mov eax, esi
call fcn.00573a20
push eax
push ebx
call sub.wininet.dll_InternetConnectA
mov edi, eax
test edi, edi
je 0x584e09
mov eax, dword [ebp - 8]
call fcn.00573820
test eax, eax
jle 0x584ad1
lea eax, [ebp - 0x34]
mov edx, 0x584e7c
call fcn.00573604
jmp 0x584ade
lea eax, [ebp - 0x34]
mov edx, 0x584e8c
call fcn.00573604
push 0
push 0x4400003
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00573a20
push eax
mov eax, dword [ebp - 0x34]
call fcn.00573a20
push eax
push edi
call sub.wininet.dll_HttpOpenRequestA
mov esi, eax
push 0xa0000000
push 0x31
push 0x584e90
push esi
call sub.wininet.dll_HttpAddRequestHeadersA
test eax, eax
je 0x584e0f
mov dword [ebp - 0x14], 0x668a0
push 4
lea eax, [ebp - 0x14]
push eax
push 2
push esi
call sub.wininet.dll_InternetSetOptionA
push 4
lea eax, [ebp - 0x14]
push eax
push 6
push esi
call sub.wininet.dll_InternetSetOptionA
push 4
lea eax, [ebp - 0x14]
push eax
push 5
push esi
call sub.wininet.dll_InternetSetOptionA
test esi, esi
je 0x584e03
mov eax, dword [ebp - 8]
call fcn.00573820
test eax, eax
jle 0x584bea
lea edx, [ebp - 0xd7b8]
mov eax, dword [ebp - 8]
call fcn.00584924
mov edx, dword [ebp - 0xd7b8]
lea eax, [ebp - 8]
call fcn.00573604
lea eax, [ebp - 0xd7b2]
xor ecx, ecx
mov edx, 0xc351
call fcn.00572734
mov eax, dword [ebp - 8]
call fcn.00573820
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
call fcn.00573a78
mov edx, eax
lea eax, [ebp - 0xd7b2]
mov ecx, dword [ebp - 0x24]
call fcn.005750d4
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x1000
lea eax, [ebp - 0x1060]
xor ecx, ecx
mov edx, 0x28
call fcn.00572734
mov dword [ebp - 0x1060], 0x28
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1044], eax
mov byte [ebp - 0x35], 0
mov eax, dword [ebp - 8]
call fcn.00573820
test eax, eax
jne 0x584c1c
push 0
push 0
push 0
push 0
push esi
call sub.wininet.dll_HttpSendRequestA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
mov al, byte [ebp - 9]
mov byte [ebp - 0x35], al
jmp 0x584d28
push 0
push 8
push 0
lea eax, [ebp - 0x1060]
push eax
push esi
call sub.wininet.dll_HttpSendRequestExA
test eax, eax
je 0x584d23
mov byte [ebp - 0x35], 1
call sub.kernel32.dll_GetTickCount_1
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x18], 0x1000
jne 0x584cec
mov eax, dword [ebp - 8]
call fcn.00573820
cdq
push edx
push eax
mov eax, dword [ebp - 0x20]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov eax, dword [ebp - 0x18]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x584c86
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x584c98
jmp 0x584c8a
pop edx
pop eax
jle 0x584c98
mov eax, dword [ebp - 8]
call fcn.00573820
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
lea edx, [ebp + eax - 0xd7b2]
lea eax, [ebp - 0x1035]
mov ecx, dword [ebp - 0x18]
call fcn.005750d4
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x1035]
push eax
push esi
call sub.wininet.dll_InternetWriteFile
test eax, eax
jne 0x584cd9
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x1c], eax
jmp 0x584cec
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x20], eax
cmp dword [ebp - 0x18], 0x1000
je 0x584c57
cmp dword [ebp - 0x1c], 0
jne 0x584d0a
push 0
push 0
push 0
push esi
call sub.wininet.dll_HttpEndRequestA
test eax, eax
jne 0x584d0a
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x584d18
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x24]
je 0x584d1c
xor eax, eax
jmp 0x584d1e
mov al, 1
mov byte [ebp - 9], al
jmp 0x584d28
call sub.kernel32.dll_GetLastError
cmp byte [ebp - 9], 0
je 0x584dfd
cmp byte [ebp - 0x35], 0
je 0x584dfd
mov eax, dword [ebp + 0x10]
call fcn.0057356c
mov dword [ebp - 0x28], 1
xor eax, eax
mov dword [ebp - 0x30], eax
jmp 0x584dd9
lea eax, [ebp - 0xd7bc]
push eax
lea eax, [ebp - 0xd7c0]
lea edx, [ebp - 0x1461]
mov ecx, 0x401
call fcn.005737d0
mov eax, dword [ebp - 0xd7c0]
mov ecx, dword [ebp - 0x28]
xor edx, edx
call fcn.00573a80
mov edx, dword [ebp - 0xd7bc]
mov eax, dword [ebp + 0x10]
call fcn.00573828
mov eax, dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
call fcn.00573820
cdq
push edx
push eax
mov eax, dword [ebp - 0x30]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x584db4
cmp eax, dword [esp]
pop edx
pop eax
jae 0x584dd9
jmp 0x584db8
pop edx
pop eax
jge 0x584dd9
cmp dword [ebp - 0x30], 0
jbe 0x584dd9
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x30]
mov edx, 1
call fcn.00573a80
lea eax, [ebp - 0x28]
push eax
push 0x401
lea eax, [ebp - 0x1461]
push eax
push esi
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x584dfd
cmp dword [ebp - 0x28], 0
ja 0x584d55
push esi
call sub.wininet.dll_InternetCloseHandle
push edi
call sub.wininet.dll_InternetCloseHandle
push ebx
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x584e51
lea eax, [ebp - 0xd7c0]
mov edx, 3
call fcn.00573590
lea eax, [ebp - 0x34]
call fcn.0057356c
lea eax, [ebp - 8]
call fcn.0057356c
lea eax, [ebp + 8]
mov edx, 2
call fcn.00573590
ret