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

Disassembly:
mov eax, 0x1013d50
call fcn.010012e0
sub esp, 0xd8
push ebx
push esi
push edi
lea ecx, [ebp - 0xe4]
call fcn.0100258e
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 0x1002614
cmp word [ebx], di
je 0x1002614
cmp esi, edi
jl 0x10021c1
push edi
lea eax, [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x1002635
test byte [ebp + 8], 0x20
jne 0x1002635
push ebx
lea ecx, [ebp - 0xe4]
call fcn.010023d5
mov esi, eax
cmp esi, edi
jl 0x1002197
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xe4]
call fcn.010024e9
mov esi, eax
cmp esi, edi
jl 0x1002197
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0xe4]
call fcn.010024f7
mov esi, eax
cmp esi, edi
jl 0x1002197
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xe4]
call fcn.01002508
mov esi, eax
cmp esi, edi
jl 0x1002197
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xe4]
call fcn.01002519
mov esi, eax
cmp esi, edi
jl 0x1002197
cmp dword [ebp - 0x1c], edi
je 0x100ce23
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xe4]
call fcn.01002528
mov esi, eax
cmp esi, edi
jl 0x1002197
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xe4]
call fcn.01002539
mov esi, eax
cmp esi, edi
jl 0x1002197
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x34]
call fcn.0100254a
cmp dword [ebp - 0x60], edi
je 0x100ce39
cmp dword [ebp - 0x40], edi
je 0x100ce39
cmp dword [ebp - 0x18], 3
jne 0x100ce2f
cmp dword [ebp - 0x18], 4
mov dword [ebp + 8], 0x400f100
je 0x100ce43
push edi
push edi
push edi
push edi
push 0x100a324
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x20], ebx
je 0x1002628
mov ecx, dword [ebp + 0x10]
cmp ecx, edi
jne 0x100ce4f
mov eax, dword [ebp - 0x44]
cmp eax, edi
je 0x100ce64
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 0x1002628
xor ebx, ebx
cmp ebx, edi
mov ecx, 0x100a318
jne 0x100ce6e
mov eax, dword [ebp - 0x30]
cmp eax, edi
jne 0x10020c7
mov eax, 0x100a34c
push edi
push dword [ebp + 8]
push 0x10172cc
push edi
push 0x100a304
push eax
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x1002628
lea ecx, [ebp - 0x98]
call fcn.01001b30
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x80]
call fcn.010022fd
cmp dword [ebp + 0xc], 0xffffffff
mov byte [ebp - 4], 6
je 0x1002129
push dword [ebp + 0xc]
lea ecx, [ebp - 0x80]
call fcn.01002369
mov esi, eax
cmp esi, edi
jl 0x10025f4
push edi
push edi
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x10025d4
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 5
call fcn.01002277
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 4
call fcn.010012b5
cmp dword [ebp - 0x10], edi
je 0x100261e
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 0x1002628
mov eax, dword [ebp - 0x24]
cmp eax, 0x190
jae 0x100ce78
xor esi, esi
cmp dword [ebp - 0x10], edi
je 0x10021a5
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x20], edi
je 0x10021b3
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x14], edi
je 0x10021c1
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 1
lea ecx, [ebp - 0x58]
call fcn.0100132c
push 1
lea ecx, [ebp - 0x34]
call fcn.0100132c
push 1
lea ecx, [ebp - 0x48]
call fcn.0100132c
push 1
lea ecx, [ebp - 0x68]
call fcn.0100132c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
call fcn.01001b1d
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x100ceba
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 5
call fcn.01002277
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 4
call fcn.010012b5
jmp 0x1002197
mov esi, 0x80070057
jmp 0x1001f44
mov esi, 0x80072f83
jmp 0x10021a5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
jmp 0x100cec3
mov esi, 0x80072f83
jmp 0x1002197
mov dword [ebp - 0x1c], 0x50
jmp 0x1001fec
cmp dword [ebp - 0x18], 4
je 0x1002049
mov esi, 0x80070057
jmp 0x1002197
mov dword [ebp + 8], 0x480f100
jmp 0x100205a
push ebx
call fcn.01011d4d
mov esi, eax
cmp esi, edi
jl 0x1002197
jmp 0x1002081
mov eax, 0x100a34c
jmp 0x100208c
mov ecx, 0x100d814
jmp 0x10020bb
cmp ebx, 1
jne 0x100ce9f
sub eax, 0x194
je 0x100cee5
sub eax, esi
je 0x1002635
dec eax
dec eax
je 0x100cee5
sub eax, 0x5c
je 0x100cee5
dec eax
je 0x100cee5
dec eax
je 0x1002635
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
inc ebx
cmp ebx, 2
mov dword [ebp - 0x10], edi
jl 0x10020ae
jmp 0x1002195
call esi
mov esi, eax
jmp 0x10025f4
test eax, eax
jg 0x100ced0
call esi
mov esi, eax
jmp 0x1002197
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1002197
mov esi, 0x80070002
jmp 0x1002197