Function at 0x102a0d7
Capabilities:
Check http status code
Check internet connectivity via wininet
Connect to http server
Create http request
Send data
Send http request

Disassembly:
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x1041998
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 5
call fcn.0102a4c5
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 4
call fcn.01001ce3
jmp 0x102a3ab
mov eax, 0x102b8d8
jmp 0x102a2db
mov esi, 0x80070057
jmp 0x102a159
mov esi, 0x80072f83
jmp 0x102a3b9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
jmp 0x10419a1
mov esi, 0x80072f83
jmp 0x102a3ab
mov eax, 0x106c60c
call fcn.010016d0
sub esp, 0xd8
push ebx
push esi
push edi
lea ecx, [ebp - 0xe4]
call fcn.01029f31
mov al, byte [ebp + 0xf]
xor edi, edi
mov dword [ebp - 4], edi
mov byte [ebp - 0x68], al
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov al, byte [ebp + 0xf]
mov byte [ebp - 0x48], al
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov al, byte [ebp + 0xf]
mov byte [ebp - 0x34], al
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov al, byte [ebp + 0xf]
mov byte [ebp - 0x58], al
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov ebx, dword [ebp + 8]
xor esi, esi
cmp ebx, edi
mov byte [ebp - 4], 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
je 0x10266bf
cmp word [ebx], di
je 0x10266bf
cmp esi, edi
jl 0x102a3d5
push edi
lea eax, [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x10266e0
test byte [ebp + 8], 0x20
jne 0x10266e0
push ebx
lea ecx, [ebp - 0xe4]
call fcn.01029e1d
mov esi, eax
cmp esi, edi
jl 0x102a3ab
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xe4]
call fcn.01029e0f
mov esi, eax
cmp esi, edi
jl 0x102a3ab
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0102a51f
mov esi, eax
cmp esi, edi
jl 0x102a3ab
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0102a530
mov esi, eax
cmp esi, edi
jl 0x102a3ab
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0102a541
mov esi, eax
cmp esi, edi
jl 0x102a3ab
cmp dword [ebp - 0x1c], edi
je 0x1041901
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0102a550
mov esi, eax
cmp esi, edi
jl 0x102a3ab
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0102a561
mov esi, eax
cmp esi, edi
jl 0x102a3ab
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x34]
call fcn.0102a572
cmp dword [ebp - 0x60], edi
je 0x1041917
cmp dword [ebp - 0x40], edi
je 0x1041917
cmp dword [ebp - 0x18], 3
jne 0x104190d
cmp dword [ebp - 0x18], 4
mov dword [ebp + 8], 0x400f100
je 0x1041921
push edi
push edi
push edi
push edi
push 0x102cbfc
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x20], ebx
je 0x10266d3
mov ecx, dword [ebp + 0x10]
cmp ecx, edi
jne 0x104192d
mov eax, dword [ebp - 0x44]
cmp eax, edi
je 0x1041942
push edi
push 0x200
push 3
push edi
push edi
push dword [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x10266d3
xor ebx, ebx
cmp ebx, edi
mov ecx, 0x102cbf0
jne 0x104194c
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x10266b5
push edi
push dword [ebp + 8]
push 0x107c5f8
push edi
push 0x102cbdc
push eax
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x10266d3
lea ecx, [ebp - 0x98]
call fcn.01002ee9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x80]
call fcn.0102a5f5
cmp dword [ebp + 0xc], 0xffffffff
mov byte [ebp - 4], 6
je 0x102a33d
push dword [ebp + 0xc]
lea ecx, [ebp - 0x80]
call fcn.0102a661
mov esi, eax
cmp esi, edi
jl 0x1026695
push edi
push edi
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x1026675
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 5
call fcn.0102a4c5
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 4
call fcn.01001ce3
cmp dword [ebp - 0x10], edi
je 0x10266c9
push 4
pop esi
push edi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x20000013
push dword [ebp - 0x10]
mov dword [ebp - 0x38], esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x10266d3
mov eax, dword [ebp - 0x24]
cmp eax, 0x190
jae 0x1041956
xor esi, esi
cmp dword [ebp - 0x10], edi
je 0x102a3b9
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x20], edi
je 0x102a3c7
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x14], edi
je 0x102a3d5
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 1
lea ecx, [ebp - 0x58]
call fcn.01001890
push 1
lea ecx, [ebp - 0x34]
call fcn.01001890
push 1
lea ecx, [ebp - 0x48]
call fcn.01001890
push 1
lea ecx, [ebp - 0x68]
call fcn.01001890
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
call fcn.01029dc0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
mov dword [ebp - 0x1c], 0x50
jmp 0x102a201
cmp dword [ebp - 0x18], 4
je 0x102a25e
mov esi, 0x80070057
jmp 0x102a3ab
mov dword [ebp + 8], 0x480f100
jmp 0x102a26f
push ebx
call fcn.01063225
mov esi, eax
cmp esi, edi
jl 0x102a3ab
jmp 0x102a296
mov eax, 0x102b8d8
jmp 0x102a2a1
mov ecx, 0x104417c
jmp 0x102a2d0
cmp ebx, 1
jne 0x104197d
sub eax, 0x194
je 0x10419c3
sub eax, esi
je 0x10266e0
dec eax
dec eax
je 0x10419c3
sub eax, 0x5c
je 0x10419c3
dec eax
je 0x10419c3
dec eax
je 0x10266e0
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
inc ebx
cmp ebx, 2
mov dword [ebp - 0x10], edi
jl 0x102a2c3
jmp 0x102a3a9
call esi
mov esi, eax
jmp 0x1026695
test eax, eax
jg 0x10419ae
call esi
mov esi, eax
jmp 0x102a3ab
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x102a3ab
mov esi, 0x80070002
jmp 0x102a3ab