Function at 0x1002d7b8
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:
mov eax, 0x1006c58c
call fcn.10055640
sub esp, 0x280
push ebx
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
push edi
mov edi, ecx
je 0x1002d7fb
cmp dword [ebp + 0xc], ebx
jne 0x1002d7df
mov dword [ebp + 0xc], 0x50
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
jne 0x1002d803
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
or eax, 0xffffffff
jmp 0x1002da27
push esi
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x18], eax
cmp eax, ebx
mov byte [ebp - 4], 1
push ebx
jne 0x1002d833
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
or ebx, 0xffffffff
jmp 0x1002da1f
push 0x300
push ebx
push 0x10074bcc
push str.HTTP_1.1
push dword [ebp + 0x10]
push 0x1007b028
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp + 8], eax
cmp eax, ebx
mov byte [ebp - 4], 2
jne 0x1002d86e
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
or ebx, 0xffffffff
jmp 0x1002da1a
push 4
lea ecx, [ebp + 0xc]
push ecx
push 0x3a
push eax
mov dword [ebp + 0xc], ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
lea eax, [ebp - 0x8c]
push eax
call fcn.1001cf08
pop ecx
mov dword [ebp + 0xc], eax
push ebx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.1000289a
mov esi, str.User_Agent:
push esi
call fcn.1005565f
pop ecx
push eax
push esi
lea ecx, [ebp - 0x54]
call fcn.100041d8
push dword [ebp + 0xc]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 4
call fcn.1000e51f
push 0x1007b004
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 5
call fcn.1000e4d3
add esp, 0x18
xor esi, esi
inc esi
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.1000289a
push esi
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 8
call fcn.1000289a
push esi
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 7
call fcn.1000289a
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x1002d916
lea eax, [ebp - 0x34]
push 0xa0000000
push dword [ebp - 0x24]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.1000289a
cmp byte [edi], bl
jne 0x1002da0f
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x1002d956
or ebx, 0xffffffff
jmp 0x1002da0f
cmp byte [edi], bl
jne 0x1002da0f
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000013
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp dword [ebp - 0x10], 0xc8
jb 0x1002da0c
cmp dword [ebp - 0x10], 0x12c
jae 0x1002da0c
mov dword [ebp + 0xc], ebx
push ebx
push ebx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
cmp byte [edi], bl
jne 0x1002da0f
cmp dword [ebp + 0xc], ebx
jbe 0x1002da0c
mov eax, 0x200
cmp dword [ebp + 0xc], eax
mov dword [ebp + 0x10], ebx
jbe 0x1002d9c0
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x28c]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [edi], bl
jne 0x1002d9fc
cmp dword [ebp + 0x10], ebx
je 0x1002d9fc
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x28c]
push eax
call fcn.10008f3d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [edi], bl
jne 0x1002da0f
cmp dword [ebp + 0xc], ebx
ja 0x1002d998
mov ebx, dword [ebp - 0x10]
push dword [ebp + 8]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x1c]
call esi
mov eax, ebx
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10