Function at 0x5469a8
Capabilities:
Check http status code
Connect to http server
Create http request
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x5469b1
mov eax, dword [ebp - 4]
add esp, 0xfffffba4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2460], ebx
mov dword [ebp - 0x245c], ebx
mov dword [ebp - 0x2440], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
call fcn.00405328
mov eax, dword [ebp + 0x1c]
call fcn.00405328
mov eax, dword [ebp + 0x18]
call fcn.00405328
mov eax, dword [ebp + 0x14]
call fcn.00405328
xor eax, eax
push ebp
push 0x547090
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x31], 0
xor eax, eax
push ebp
push 0x546a58
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x40
push eax
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x546a7d
xor eax, eax
push ebp
push 0x54703e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 0x10], 0
je 0x546aa1
test esi, esi
jg 0x546a9a
mov esi, 0x1bb
mov edi, 0x800000
jmp 0x546aac
test esi, esi
jg 0x546aaa
mov esi, 0x50
xor edi, edi
lea eax, [ebp - 0x2050]
xor ecx, ecx
mov edx, 0x2000
call fcn.00403774
lea eax, [ebp - 0x2c]
mov edx, 0x5470ac
call fcn.00404ef4
cmp bl, 1
jne 0x546b28
cmp dword [ebp + 0x18], 0
je 0x546b20
lea eax, [ebp - 0x2440]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2450], eax
mov byte [ebp - 0x244c], 0xb
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2448], eax
mov byte [ebp - 0x2444], 0xb
lea edx, [ebp - 0x2450]
mov ecx, 1
mov eax, 0x5470c0
call fcn.0040d570
mov edx, dword [ebp - 0x2440]
lea eax, [ebp - 0xc]
call fcn.00404ef4
lea eax, [ebp + 0x18]
call fcn.00404e5c
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
je 0x546b3b
call fcn.0040485c
jmp 0x547045
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x2c]
call fcn.00405338
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x546b64
call fcn.0040485c
jmp 0x547045
xor eax, eax
push ebp
push 0x54701d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
je 0x546b8a
call fcn.0040485c
call fcn.0040485c
jmp 0x547045
push 0
push 0
push 3
push 0
push 0
push esi
mov eax, dword [ebp + 0x1c]
call fcn.00405338
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x546bbf
call fcn.0040485c
call fcn.0040485c
jmp 0x547045
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
je 0x546bd7
call fcn.0040485c
call fcn.0040485c
jmp 0x547045
xor eax, eax
push ebp
push 0x546fff
push dword fs:[eax]
mov dword fs:[eax], esp
or edi, 0x80000000
or edi, 0x800
or edi, 0x100
or edi, 0x400000
push 0
push edi
push 0
push 0
push 0x5470c8
mov eax, dword [ebp - 0xc]
call fcn.00405338
push eax
xor eax, eax
mov al, bl
mov eax, dword [eax*4 + 0x599cf4]
call fcn.00405338
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
je 0x546c4c
call fcn.0040485c
call fcn.0040485c
call fcn.0040485c
jmp 0x547045
cmp dword [ebp - 0x1c], 0
jne 0x546c66
call fcn.0040485c
call fcn.0040485c
call fcn.0040485c
jmp 0x547045
xor eax, eax
push ebp
push 0x546fdc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0x14]
call fcn.00405138
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
je 0x546ca1
call fcn.0040485c
call fcn.0040485c
call fcn.0040485c
call fcn.0040485c
jmp 0x547045
lea eax, [ebp - 0x28]
call fcn.00404e5c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x74], 0
jle 0x546cdd
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov dword [ebp - 0x2458], eax
mov byte [ebp - 0x2454], 0
lea edx, [ebp - 0x2458]
xor ecx, ecx
mov eax, 0x5470dc
call fcn.0040d570
jmp 0x546cea
lea eax, [ebp - 0x28]
mov edx, 0x5470f8
call fcn.00404ef4
push 0xa0000000
mov eax, dword [ebp - 0x28]
call fcn.00405138
push eax
mov eax, dword [ebp - 0x28]
call fcn.00405338
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
test eax, eax
je 0x546f6b
mov eax, dword [ebp + 0x18]
call fcn.00405138
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp + 0x14]
call fcn.00405338
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_HttpSendRequestA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x31], al
cmp byte [ebp - 0x31], 0
je 0x546f6b
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0x3e9
lea eax, [ebp - 0x2439]
mov edx, 0x3e9
call fcn.00408604
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x2439]
push eax
push 0x13
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x546da9
lea eax, [ebp - 0x245c]
lea edx, [ebp - 0x2439]
mov ecx, 0x3e9
call fcn.004050cc
mov eax, dword [ebp - 0x245c]
lea edx, [ebp - 0x44]
call fcn.00406028
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0x3e9
lea eax, [ebp - 0x2439]
mov edx, 0x3e9
call fcn.00408604
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x2439]
push eax
push 1
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x546df1
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x2439]
call fcn.0040d058
cmp dword [ebp - 0x38], 0
jne 0x546e58
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0x3e9
lea eax, [ebp - 0x2439]
mov edx, 0x3e9
call fcn.00408604
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x2439]
push eax
push 5
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x546e58
lea eax, [ebp - 0x2460]
lea edx, [ebp - 0x2439]
mov ecx, 0x3e9
call fcn.004050cc
mov eax, dword [ebp - 0x2460]
lea edx, [ebp - 0x44]
call fcn.00406028
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x3c], 0x190
jb 0x546e83
mov eax, dword [ebp - 4]
cmp byte [eax + 0x58], 0
je 0x546e83
call fcn.0040485c
call fcn.0040485c
call fcn.0040485c
call fcn.0040485c
jmp 0x547045
cmp byte [ebp - 0x31], 0
je 0x546f6b
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
jne 0x546f08
xor eax, eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetQueryDataAvailable
test eax, eax
je 0x546f08
cmp dword [ebp - 0x50], 0x2000
jbe 0x546ec4
mov dword [ebp - 0x50], 0x2000
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x50]
push eax
lea eax, [ebp - 0x2050]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetReadFile
cmp eax, 1
sbb ebx, ebx
inc ebx
cmp dword [ebp - 0x20], 0
jbe 0x546ef9
lea edx, [ebp - 0x2050]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x10]
cmp dword [ebp - 0x20], 0
je 0x546f03
test bl, bl
jne 0x546e8d
call sub.kernel32.dll_GetLastError_1
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
je 0x546f2a
call fcn.0040485c
call fcn.0040485c
call fcn.0040485c
call fcn.0040485c
jmp 0x547045
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0x38]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x546f47
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x546f6b
jmp 0x546f4b
pop edx
pop eax
jle 0x546f6b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x58], 0
je 0x546f6b
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
mov edx, dword [ebp - 0x38]
sub edx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], edx
jmp 0x546c74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x546fe3
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004247e8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x58], 0
jne 0x546fab
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x546fa0
cmp eax, 0
jbe 0x546fcd
jmp 0x546fa2
jle 0x546fcd
mov dword [ebp - 0x10], 1
jmp 0x546fcd
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0x38]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x546fc2
cmp eax, dword [esp]
pop edx
pop eax
jne 0x546fcd
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
mov dword [ebp - 0x1c], eax
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x547097
lea eax, [ebp - 0x2460]
mov edx, 2
call fcn.00404e80
lea eax, [ebp - 0x2440]
call fcn.00404e5c
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404e80
lea eax, [ebp - 0xc]
call fcn.00404e5c
lea eax, [ebp + 0x14]
mov edx, 3
call fcn.00404e80
ret