Function at 0x1002e330
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x38]
push ebx
mov ebx, dword [ebp + 0x3c]
push esi
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x40]
push edi
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x200
push eax
push 0
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x544547
push eax
lea eax, [ebp - 0xc]
push 5
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0
push 0
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, eax
test edi, edi
je 0x1002e4e0
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
push 0
cmovae ecx, dword [ebp + 8]
push 0
push 3
push 0
push 0
push 0x50
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, eax
mov dword [ebp - 0x218], ecx
test ecx, ecx
je 0x1002e4dd
cmp dword [ebp + 0x34], 0x10
lea edx, [ebp - 0x224]
push 0
push 0x8404f700
push 0
push 0
push edx
lea eax, [ebp + 0x20]
mov dword [ebp - 0x224], 0x50545448
cmovae eax, dword [ebp + 0x20]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x220], 0x312e312f
push eax
push ecx
mov byte [ebp - 0x21c], 0
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x230], eax
xorps xmm0, xmm0
movq qword [ebp - 0x224], xmm0
mov byte [ebp - 0x21c], 0
test eax, eax
je 0x1002e4d7
xor ecx, ecx
test ebx, ebx
je 0x1002e469
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002e460
sub ecx, edx
mov eax, dword [ebp - 0x214]
xor edx, edx
test eax, eax
je 0x1002e493
mov edx, eax
lea eax, [edx + 1]
mov dword [ebp - 0x22c], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x1002e480
sub edx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x214]
push ecx
push ebx
mov ebx, dword [ebp - 0x230]
push edx
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x64
push eax
push 0x64
push dword [ebp - 0x228]
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x228]
push ebx
mov byte [ecx + eax], 0
call esi
mov ecx, dword [ebp - 0x218]
push ecx
call esi
push edi
call esi
mov edx, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
cmp edx, 0x10
jb 0x1002e516
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002e50c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002e54e
push edx
push ecx
call fcn.1007d9df
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x1002e55e
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002e554
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002e554
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007d9df
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007d0b9
mov esp, ebp
pop ebp
ret 0x3c