Function at 0x100166b7
Capabilities:
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push 0xc68
mov eax, 0x10051ceb
call fcn.100252b3
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
push str.CrossriderApp0003915
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0xc20], eax
cmp eax, ebx
jne 0x1001671e
push str.InternetOpen_Failed
lea ecx, [ebp - 0xc18]
call fcn.10001b63
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xc18]
push eax
push ebx
push edi
call fcn.10016092
add esp, 0xc
mov esi, eax
lea ecx, [ebp - 0xc18]
call fcn.10001270
mov eax, esi
call fcn.10025336
ret
push 0x38
lea eax, [ebp - 0xc70]
push ebx
push eax
call fcn.100255c0
mov esi, 0x400
push esi
mov dword [ebp - 0xc74], 0x3c
call fcn.10024001
push esi
mov dword [ebp - 0xc64], eax
mov dword [ebp - 0xc60], esi
call fcn.10024001
add esp, 0x14
mov dword [ebp - 0xc48], eax
mov eax, dword [edi + 8]
lea edx, [ebp - 0xc74]
push edx
mov dword [ebp - 0xc44], esi
mov ecx, dword [eax - 8]
push ebx
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push dword [ebp - 0xc64]
push dword [ebp - 0xc20]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
mov dword [ebp - 0xc1c], esi
cmp esi, ebx
jne 0x100167df
push dword [ebp - 0xc20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0xc64]
call fcn.10024395
push dword [ebp - 0xc48]
call fcn.10024395
pop ecx
pop ecx
push str.InternetConnect_Failed
lea ecx, [ebp - 0xc18]
call fcn.10001b63
mov dword [ebp - 4], 1
jmp 0x100166f8
push 1
push 0x8060c200
push ebx
push ebx
push ebx
push dword [ebp - 0xc48]
push str.POST
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0xc30], eax
cmp eax, ebx
jne 0x1001684a
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0xc20]
call esi
push dword [ebp - 0xc64]
call fcn.10024395
push dword [ebp - 0xc48]
call fcn.10024395
pop ecx
pop ecx
push str.HttpOpenRequest_Failed
lea ecx, [ebp - 0xc18]
call fcn.10001b63
mov dword [ebp - 4], 2
jmp 0x100166f8
push dword [ebp - 0xc64]
call fcn.10024395
push dword [ebp - 0xc48]
call fcn.10024395
mov eax, dword [edi + 0x30]
mov eax, dword [eax - 8]
mov ecx, dword [0x1006a014]
mov dword [ebp - 0xc18], eax
mov dword [ebp - 0xc28], ecx
push eax
lea eax, [ebp - 0xc28]
push str.Content_Type:_application_x_www_form_urlencoded__Content_Length:__d
push eax
mov dword [ebp - 4], 3
call fcn.10001bc3
mov eax, dword [ebp - 0xc28]
mov eax, dword [eax - 8]
add esp, 0x14
push ebx
lea ecx, [edi + 0x30]
mov dword [ebp - 0xc38], eax
call fcn.100013e1
push dword [ebp - 0xc18]
mov esi, dword [ebp - 0xc30]
push eax
push dword [ebp - 0xc38]
push dword [ebp - 0xc28]
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x10016926
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0xc1c]
call esi
push dword [ebp - 0xc20]
call esi
push str.HttpSendRequest_Failed
lea ecx, [ebp - 0xc18]
call fcn.10001b63
mov byte [ebp - 4], 4
lea eax, [ebp - 0xc18]
push eax
push ebx
push edi
call fcn.10016092
add esp, 0xc
mov esi, eax
lea ecx, [ebp - 0xc18]
call fcn.10001270
lea ecx, [ebp - 0xc28]
jmp 0x10016711
push 0x3ff
lea eax, [ebp - 0x40f]
push ebx
push eax
mov byte [ebp - 0x410], bl
call fcn.100255c0
add esp, 0xc
push ebx
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x410]
push eax
push 0x13
push esi
mov dword [ebp - 0xc34], 0x3ff
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x10016999
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0xc1c]
call esi
push dword [ebp - 0xc20]
call esi
push str.HttpQueryInfo_Failed
lea ecx, [ebp - 0xc18]
call fcn.10001b63
mov byte [ebp - 4], 5
jmp 0x100168fd
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0xc30]
call fcn.10001b63
push ebx
push 0x10059344
mov ecx, eax
call fcn.1000215d
cmp eax, 0xffffffff
lea ecx, [ebp - 0xc30]
setne byte [ebp - 0xc21]
call fcn.10001270
cmp byte [ebp - 0xc21], bl
je 0x10016a13
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call ebx
push dword [ebp - 0xc1c]
call ebx
push dword [ebp - 0xc20]
call ebx
push str.HTTP_404
lea ecx, [ebp - 0xc18]
call fcn.10001b63
lea eax, [ebp - 0xc18]
push eax
mov byte [ebp - 4], 6
push 0x194
jmp 0x10016905
mov eax, dword [0x1006a014]
mov dword [ebp - 0xc18], eax
push 0x800
lea eax, [ebp - 0xc13]
push ebx
push eax
mov byte [ebp - 4], 7
mov byte [ebp - 0xc14], bl
call fcn.100255c0
add esp, 0xc
mov dword [ebp - 0xc2c], ebx
lea eax, [ebp - 0xc2c]
push eax
push 0x800
lea eax, [ebp - 0xc14]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10016abd
cmp dword [ebp - 0xc34], ebx
je 0x10016a88
mov eax, dword [ebp - 0xc2c]
mov byte [ebp + eax - 0xc14], bl
lea eax, [ebp - 0xc14]
push eax
lea ecx, [ebp - 0xc18]
call fcn.10005875
cmp dword [ebp - 0xc2c], ebx
jne 0x10016a43
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call ebx
push dword [ebp - 0xc1c]
call ebx
push dword [ebp - 0xc20]
call ebx
lea eax, [ebp - 0xc18]
push eax
push edi
call fcn.100160fb
pop ecx
pop ecx
jmp 0x1001690e
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0xc1c]
call esi
push dword [ebp - 0xc20]
call esi
push str.InternetReadFile_Failed
lea ecx, [ebp - 0xc1c]
call fcn.10001b63
lea eax, [ebp - 0xc1c]
push eax
push ebx
push edi
mov byte [ebp - 4], 8
call fcn.10016092
add esp, 0xc
lea ecx, [ebp - 0xc1c]
mov esi, eax
call fcn.10001270
jmp 0x10016910