Function at 0x90f024
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 ecx
mov ecx, 0x16
push 0
push 0
dec ecx
jne 0x90f02d
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
call fcn.0040b9c4
mov eax, dword [ebp + 0x1c]
call fcn.0040b9c4
mov eax, dword [ebp + 0x18]
call fcn.0040b9c4
mov eax, dword [ebp + 0x14]
call fcn.0040b9c4
mov eax, dword [ebp + 0x10]
call fcn.0040b9c4
mov eax, dword [ebp + 0xc]
call fcn.0040b9c4
mov eax, dword [ebp + 8]
call fcn.0040b9c4
xor eax, eax
push ebp
push 0x90f65e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 0
mov eax, dword [ebp + 0x20]
xor edx, edx
mov dword [eax], edx
lea edx, [ebp - 0x90]
xor eax, eax
call fcn.00407734
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call fcn.004282d4
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 0x20]
mov ecx, 0
call fcn.0040c3ec
cmp dword [ebp + 0x14], 0
setne byte [ebp - 0x51]
xor eax, eax
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x48], eax
cmp byte [ebp - 0x51], 0
je 0x90f110
lea eax, [ebp - 0x30]
mov edx, dword [ebp + 0x14]
call fcn.0040bd98
cmp dword [ebp + 0x10], 0
je 0x90f109
push dword [ebp - 0x30]
push 0x90f67c
push dword [ebp + 0x10]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.0040c170
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x4c], 3
xor eax, eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x24]
call fcn.0040b8e4
lea eax, [ebp - 0x98]
mov edx, dword [ebp - 0x10]
call fcn.0040c680
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
call fcn.00426a98
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x58], eax
mov ecx, 1
mov edx, dword [ebp - 0x58]
mov eax, 0x90f68c
call fcn.0040cae0
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 7
cmp dword [ebp - 0x38], 0
jne 0x90f1cb
lea eax, [ebp - 0xa0]
mov edx, dword [ebp - 0x10]
call fcn.0040c680
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0x9c]
call fcn.00426a98
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x60], eax
mov ecx, 1
mov edx, dword [ebp - 0x60]
mov eax, 0x90f6a8
call fcn.0040cae0
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jle 0x90f1c4
mov dword [ebp - 0x50], 0x800000
mov dword [ebp - 0x3c], 8
cmp dword [ebp - 0x38], 0
jle 0x90f220
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.0040c2c8
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x3c]
jno 0x90f1f2
call fcn.0040972c
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x90f20c
mov eax, dword [ebp - 0x68]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x10]
call fcn.0040c2c8
jmp 0x90f22b
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.0040bd98
lea eax, [ebp - 0xa4]
mov edx, dword [ebp - 0x2c]
call fcn.0040c680
mov edx, dword [ebp - 0xa4]
mov ecx, 1
mov eax, 0x90f6c8
call fcn.0040cae0
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jle 0x90f2a6
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x38]
sub ecx, 1
jno 0x90f26e
call fcn.0040972c
mov edx, 1
mov eax, dword [ebp - 0x2c]
call fcn.0040c2c8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x90f292
mov eax, dword [ebp - 0x74]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
call fcn.0040c2c8
jmp 0x90f2b9
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
call fcn.0040bd98
lea eax, [ebp - 0x2c]
call fcn.0040b8e4
lea eax, [ebp - 0xa8]
mov edx, dword [ebp - 0x28]
call fcn.0040c680
mov edx, dword [ebp - 0xa8]
mov ecx, 1
mov eax, 0x90f6d8
call fcn.0040cae0
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jle 0x90f371
mov eax, dword [ebp - 0x38]
add eax, 1
jno 0x90f2fc
call fcn.0040972c
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
je 0x90f316
mov eax, dword [ebp - 0x7c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x28]
call fcn.0040c2c8
mov edx, dword [ebp - 0xb0]
lea eax, [ebp - 0xac]
call fcn.0040c680
mov eax, dword [ebp - 0xac]
call fcn.00427984
test eax, eax
jns 0x90f350
call fcn.00409724
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x38]
sub ecx, 1
jno 0x90f364
call fcn.0040972c
mov edx, 1
mov eax, dword [ebp - 0x28]
call fcn.0040c2c8
push 0
push 0
mov eax, dword [ebp - 0x30]
call fcn.0040c2b8
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x20]
call fcn.0040c2b8
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x90f3a8
call sub.kernel32.dll_GetLastError
mov edx, dword [ebp + 0x20]
mov dword [edx], eax
jmp 0x90f606
cmp dword [ebp + 0xc], 0
jne 0x90f3e7
cmp dword [ebp + 8], 0
jne 0x90f3e7
push 0
push 0
mov eax, dword [ebp - 0x4c]
push eax
push 0
push 0
mov eax, dword [ebp - 0x48]
cmp eax, 0xffff
jbe 0x90f3cf
call fcn.00409724
push eax
mov eax, dword [ebp - 0x28]
call fcn.0040c2b8
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 8], eax
jmp 0x90f426
push 0
push 0
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp + 8]
call fcn.0040c2b8
push eax
mov eax, dword [ebp + 0xc]
call fcn.0040c2b8
push eax
mov eax, dword [ebp - 0x48]
cmp eax, 0xffff
jbe 0x90f410
call fcn.00409724
push eax
mov eax, dword [ebp - 0x28]
call fcn.0040c2b8
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x90f442
call sub.kernel32.dll_GetLastError
mov edx, dword [ebp + 0x20]
mov dword [edx], eax
push ebp
call fcn.0090eff8
pop ecx
jmp 0x90f606
push 0
push 0x400000
push 0
push 0
push 0
mov eax, dword [ebp - 0x2c]
call fcn.0040c2b8
push eax
push 0x90f6dc
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x90f485
call sub.kernel32.dll_GetLastError
mov edx, dword [ebp + 0x20]
mov dword [edx], eax
push ebp
call fcn.0090eff8
pop ecx
jmp 0x90f606
cmp byte [ebp - 0x51], 0
je 0x90f529
cmp dword [ebp + 0x1c], 0
je 0x90f4dc
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
je 0x90f4b8
mov eax, dword [ebp - 0x84]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
test eax, eax
jns 0x90f4c7
call fcn.00409724
push eax
mov eax, dword [ebp + 0x1c]
call fcn.0040c2b8
push eax
push 0x2b
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetSetOptionW
cmp dword [ebp + 0x18], 0
je 0x90f529
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
je 0x90f505
mov eax, dword [ebp - 0x88]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
test eax, eax
jns 0x90f514
call fcn.00409724
push eax
mov eax, dword [ebp + 0x18]
call fcn.0040c2b8
push eax
push 0x2c
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetSetOptionW
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpSendRequestW
test eax, eax
jne 0x90f554
call sub.kernel32.dll_GetLastError
mov edx, dword [ebp + 0x20]
mov dword [edx], eax
push ebp
call fcn.0090eff8
pop ecx
jmp 0x90f606
lea eax, [ebp - 0x34]
call fcn.0040b8e4
lea eax, [ebp - 0x30]
xor ecx, ecx
mov edx, 0x1000
call fcn.0040c374
lea eax, [ebp - 0x40]
push eax
push 0x1000
lea eax, [ebp - 0x30]
call fcn.0040be94
mov edx, 1
dec edx
test eax, eax
je 0x90f58b
cmp edx, dword [eax - 4]
jb 0x90f590
call fcn.00409724
inc edx
lea eax, [eax + edx - 1]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
jne 0x90f5b6
call sub.kernel32.dll_GetLastError
mov edx, dword [ebp + 0x20]
mov dword [edx], eax
push ebp
call fcn.0090eff8
pop ecx
jmp 0x90f606
lea eax, [ebp - 0x30]
xor ecx, ecx
mov edx, dword [ebp - 0x40]
call fcn.0040c374
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x30]
call fcn.0040c094
cmp dword [ebp - 0x40], 0
jne 0x90f55c
push ebp
call fcn.0090eff8
pop ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x34]
call fcn.0040bd4c
lea edx, [ebp - 0xb4]
mov eax, dword [ebp - 0x34]
call fcn.00411e18
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0x18]
call fcn.0040c6a0
mov byte [ebp - 0x19], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x90f665
lea eax, [ebp - 0xb4]
call fcn.0040b908
lea eax, [ebp - 0xb0]
call fcn.0040b8e4
lea eax, [ebp - 0xac]
mov edx, 9
call fcn.0040b920
lea eax, [ebp - 0x34]
mov edx, 6
call fcn.0040b958
lea eax, [ebp - 0x10]
call fcn.0040b8e4
lea eax, [ebp + 8]
mov edx, 6
call fcn.0040b958
pop eax
jmp eax