Function at 0x1003ab9d
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Get http content length
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov eax, 0x100cff91
call fcn.100b286c
sub esp, 0x78
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
push edi
mov dword [ebp - 0x30], esi
je 0x1003abd8
push ebx
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x28], ebx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
cmp eax, ebx
jne 0x1003abdf
test byte [ebp - 0x28], 0x48
jne 0x1003abdf
xor eax, eax
jmp 0x1003aef8
mov ecx, dword [esi + 0x3c]
lea eax, [ebp - 0x84]
push eax
call fcn.100679d5
mov ecx, dword [esi + 0x3c]
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 4], ebx
call fcn.100679f0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.1007e247
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.1007e247
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.100031dc
lea eax, [ebp - 0x60]
push eax
sub esp, 0xc
lea edi, [esi + 0x24]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push edi
mov byte [ebp - 4], 4
call fcn.1007ed4f
mov ecx, esi
call fcn.1003a9a2
cmp eax, ebx
jne 0x1003ac71
mov ecx, edi
call fcn.1007e558
push eax
lea ecx, [ebp - 0x6c]
call fcn.1007e254
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.1007e46a
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.1007e410
push str.RequestString
lea ecx, [ebp - 0x6c]
call fcn.1007e254
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 6
call fcn.1007e46a
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.1007e410
lea ecx, [ebp - 0x60]
call fcn.1007e558
push eax
lea ecx, [ebp - 0x54]
call fcn.1007ee1f
push ebx
push ebx
push ebx
push ebx
push 0x100e8894
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebx
mov dword [ebp - 0x34], eax
jne 0x1003acc9
mov dword [ebp - 0x14], ebx
jmp 0x1003aeb7
xor edi, edi
inc edi
push edi
push ebx
push 3
push ebx
push ebx
push 0x50
lea ecx, [ebp - 0x84]
call fcn.1007e49f
push eax
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
mov dword [ebp - 0x24], eax
jne 0x1003acf8
mov dword [ebp - 0x14], ebx
jmp 0x1003aea0
push edi
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x78]
call fcn.1007e49f
push eax
push str.POST
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x1003ad72
push 0xfde9
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x54]
call fcn.1007e2fa
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.10003ff5
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.10003276
lea ecx, [ebp - 0x48]
call fcn.100032d4
push eax
lea ecx, [ebp - 0x48]
call fcn.1000335c
push eax
mov esi, str.Content_Type:_application_x_www_form_urlencoded
push esi
call fcn.100b36b0
pop ecx
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, ebx
jne 0x1003ad7a
mov dword [ebp - 0x14], ebx
jmp 0x1003ae92
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000005
push dword [ebp - 0x18]
mov dword [ebp - 0x38], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x1003ada4
mov dword [ebp - 0x2c], edi
jmp 0x1003adb1
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], 0x1400
mov eax, dword [ebp - 0x10]
inc eax
push eax
call fcn.100b2ba7
mov esi, eax
mov eax, dword [ebp - 0x10]
inc eax
push eax
push ebx
push esi
call fcn.100b2930
mov eax, dword [ebp - 0x10]
add esp, 0x10
xor edi, edi
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], eax
je 0x1003ae84
cmp dword [ebp - 0x20], ebx
jbe 0x1003ae43
cmp dword [ebp - 0x2c], ebx
je 0x1003aded
cmp edi, eax
jae 0x1003ae43
jmp 0x1003ae1b
cmp eax, edi
ja 0x1003ae1b
mov dword [ebp - 0x3c], eax
add eax, 0x1400
mov dword [ebp - 0x10], eax
inc eax
push eax
push esi
call fcn.100b3838
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x1003ae3e
mov eax, dword [ebp - 0x3c]
mov byte [eax + esi], bl
mov eax, dword [ebp - 0x10]
mov byte [eax + esi], bl
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
push ecx
sub eax, edi
push eax
lea eax, [edi + esi]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetReadFile]
add edi, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x1003ae84
mov eax, dword [ebp - 0x10]
jmp 0x1003addd
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x1c], ebx
je 0x1003ae84
cmp eax, ebx
je 0x1003ae84
push esi
lea ecx, [ebp - 0x6c]
call fcn.100031e9
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 8
call fcn.1003a8be
mov ecx, dword [ebp - 0x30]
push 0xfde9
lea eax, [ebp - 0x6c]
push eax
call fcn.1007f32e
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.10003276
jmp 0x1003ae87
mov dword [ebp - 0x14], ebx
cmp esi, ebx
je 0x1003ae92
push esi
call fcn.100b29e2
pop ecx
cmp dword [ebp - 0x18], ebx
je 0x1003aea0
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x24], ebx
je 0x1003aeae
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.10003276
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.1007e410
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.1007e410
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], bl
call fcn.1007e410
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.1007e410
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret