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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x33cc
call fcn.10018c90
mov eax, dword [0x1002a080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x3278], eax
mov dword [ebp - 0x327c], esi
cmp esi, ebx
je 0x100015bd
cmp word [esi], bx
je 0x100015bd
xor eax, eax
push 7
mov word [ebp - 0x24], ax
pop ecx
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
push 0x1fe
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x222]
push ebx
push eax
call fcn.1000e030
xor eax, eax
push 0xffe
mov word [ebp - 0x1224], ax
lea eax, [ebp - 0x1222]
push ebx
push eax
call fcn.1000e030
push esi
lea esi, [ebp - 0x326c]
mov dword [ebp - 0x3284], ebx
call fcn.10001605
add esp, 0x1c
test eax, eax
je 0x100015bd
lea eax, [ebp - 0x1224]
push eax
lea eax, [ebp - 0x3284]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x327c]
lea eax, [ebp - 0x24]
call fcn.100017f8
push 5
lea eax, [ebp - 0x24]
push str.https
push eax
call fcn.1000d8cc
add esp, 0x1c
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp word [ebp - 0x3284], bx
jne 0x100013a7
mov eax, esi
neg eax
sbb eax, eax
and eax, 0x16b
add eax, 0x50
movzx eax, ax
mov dword [ebp - 0x3284], eax
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_5.0__Windows_NT_6.1__WOW64__Trident_7.0__rv:11.0__like_Gecko
mov dword [ebp - 0x327c], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x328c], eax
cmp eax, ebx
je 0x100015b5
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x3284]
lea ecx, [ebp - 0x224]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x3288], eax
cmp eax, ebx
je 0x100015a9
push 0x13c
lea eax, [ebp - 0x33c8]
push ebx
push eax
call fcn.1000e030
add esp, 0xc
mov eax, esi
neg eax
sbb eax, eax
push ebx
and eax, 0x803000
or eax, 0x840c0300
push eax
lea eax, [ebp - 0x33cc]
push eax
push ebx
push ebx
lea eax, [ebp - 0x1224]
push eax
push ebx
push dword [ebp - 0x3288]
mov dword [ebp - 0x33cc], 0x10024cdc
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x3274], eax
cmp eax, ebx
je 0x1000159d
push 4
pop edi
cmp esi, ebx
je 0x10001498
lea ecx, [ebp - 0x3280]
push ecx
lea ecx, [ebp - 0x3270]
push ecx
push 0x1f
push eax
mov dword [ebp - 0x3270], ebx
mov dword [ebp - 0x3280], edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0x3270], 0x3100
push edi
lea eax, [ebp - 0x3270]
push eax
push 0x1f
push dword [ebp - 0x3274]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp - 0x3278]
mov esi, dword [eax]
cmp esi, ebx
je 0x100014b2
cmp word [esi], bx
je 0x100014b2
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x100014b4
xor eax, eax
push ebx
push ebx
push eax
push esi
push dword [ebp - 0x3274]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x10001591
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push ebx
lea eax, [ebp - 0x3270]
push eax
lea eax, [ebp - 0x3280]
push eax
push 0x20000013
push dword [ebp - 0x3274]
mov dword [ebp - 0x327c], 1
mov dword [ebp - 0x3280], ebx
mov dword [ebp - 0x3270], edi
call esi
test eax, eax
je 0x10001591
mov eax, dword [ebp - 0x3280]
mov edi, dword [ebp - 0x3278]
push ebx
mov dword [edi + 4], eax
lea eax, [ebp - 0x3270]
push eax
lea eax, [ebp - 0x3278]
push eax
push 0x20000005
push dword [ebp - 0x3274]
mov dword [ebp - 0x3278], ebx
call esi
test eax, eax
je 0x1000154a
mov eax, dword [ebp - 0x3278]
mov dword [edi + 8], eax
lea eax, [ebp - 0x3270]
push eax
push 0x2000
lea eax, [ebp - 0x3224]
push eax
push dword [ebp - 0x3274]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10001591
cmp dword [ebp - 0x3270], ebx
je 0x10001591
push dword [ebp - 0x3270]
lea ecx, [edi + 0xc]
lea eax, [ebp - 0x3224]
call fcn.10001165
cmp dword [ebp - 0x3270], ebx
jne 0x1000154a
push dword [ebp - 0x3274]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x3288]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x328c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x327c]
jmp 0x100015bf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cdb3
leave
ret