Function at 0x1000add2
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push 0xc7c
mov eax, 0x1001760f
call fcn.10016e27
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 0xc2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc24], ebx
mov dword [ebp - 0xc44], eax
call fcn.1000ad8a
lea eax, [ebp - 0xc34]
mov dword [ebp - 0xc28], 0x80004005
push eax
push 0x10018608
xor edi, edi
mov ecx, 0x10018568
and dword [ebp - 0xc34], edi
xor esi, esi
push 1
mov dword [ebp - 0xc40], edi
call fcn.100164a3
mov ecx, dword [ebp - 0xc34]
test ecx, ecx
je 0x1000ae85
mov eax, dword [ecx]
xor edx, edx
push edx
push 0xc
push edx
push edx
push 4
lea edx, [ebp - 0xc4c]
push edx
push 0x1601
push dword [ebp - 0xc38]
push ecx
call dword [eax + 0x1c]
mov ebx, eax
mov eax, dword [ebp - 0xc34]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test ebx, ebx
mov ebx, dword [ebp - 0xc24]
jne 0x1000b32b
xor eax, eax
push eax
push eax
push eax
push eax
push 0x10019a64
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx + 0xc8], eax
test eax, eax
je 0x1000b32b
push 0x3c
lea eax, [ebp - 0xc88]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc88], 0x3c
mov eax, 0x104
mov dword [ebp - 0xc74], eax
mov dword [ebp - 0xc58], eax
push dword [ebp - 0xc38]
mov eax, dword [sym.imp.OLEAUT32.dll_VariantInit]
mov dword [ebp - 0xc24], eax
call eax
test eax, eax
je 0x1000b32b
lea ecx, [ebp - 0xc88]
push ecx
push 0
push eax
push dword [ebp - 0xc38]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x1000b32b
mov ecx, dword [ebp - 0xc78]
test ecx, ecx
je 0x1000b32b
cmp dword [ebp - 0xc5c], esi
je 0x1000b32b
mov eax, dword [ebp - 0xc74]
mov edx, 0x104
inc eax
cmp eax, edx
cmova eax, edx
lea edx, [ebp - 0x420]
push eax
call fcn.100164a3
mov ecx, dword [ebp - 0xc5c]
lea edx, [ebp - 0x218]
xor eax, eax
push 0x104
mov word [ebp - 0x21a], ax
call fcn.100164a3
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push dword [ebp - 0xc70]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x420]
push eax
push dword [ebx + 0xc8]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebx + 0xcc], eax
test eax, eax
je 0x1000b32b
xor ecx, ecx
cmp dword [ebp - 0xc7c], 4
push ecx
je 0x1000afa7
push 0x4400100
jmp 0x1000afac
push 0x4c00100
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x218]
push ecx
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebx + 0xd0], eax
test eax, eax
je 0x1000b32b
push 0xa0000000
push 0x31
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x1000b32b
push dword [ebp - 0xc44]
call dword [ebp - 0xc24]
add eax, 2
push eax
mov dword [ebp - 0xc24], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test eax, eax
pop ecx
cmovne esi, eax
jne 0x1000b01e
mov dword [ebp - 0xc28], 0x8007000e
jmp 0x1000b32b
push ecx
push dword [ebp - 0xc24]
mov ecx, dword [ebp - 0xc44]
mov edx, esi
call fcn.100164a3
push 4
lea eax, [ebp - 0xc48]
mov dword [ebp - 0xc48], 2
push eax
push 0x3e
push dword [ebx + 0xd0]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test esi, esi
je 0x1000b067
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000b05c
sub ecx, edx
jmp 0x1000b069
xor ecx, ecx
push ecx
push esi
push 0
push 0
push dword [ebx + 0xd0]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x1000b0ea
cmp dword [ebp - 0xc7c], 4
jne 0x1000b1d9
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, eax
sub ecx, 0x2f06
je 0x1000b0af
sub ecx, 6
je 0x1000b0af
sub ecx, 1
je 0x1000b0af
sub ecx, 0xa
jne 0x1000b32b
lea ecx, [ebp - 0xc24]
push ecx
push 7
push eax
push dword [ebx + 0xd0]
push dword [ebp - 0xc2c]
call dword [sym.imp.WININET.dll_InternetErrorDlg]
test eax, eax
je 0x1000b053
cmp eax, 0x2f00
je 0x1000b053
cmp eax, 0x4c7
je 0x1000b324
jmp 0x1000b32b
call dword [sym.imp.kernel32.dll_GetLastError]
push 0
push 7
push eax
push dword [ebx + 0xd0]
push dword [ebp - 0xc2c]
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
je 0x1000b053
and dword [ebp - 0xc30], edi
lea eax, [ebp - 0xc3c]
push 0
push eax
lea eax, [ebp - 0xc30]
mov dword [ebp - 0xc3c], 4
push eax
push 0x20000013
push dword [ebx + 0xd0]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x1000b32b
cmp dword [ebp - 0xc30], 0x191
je 0x1000b324
cmp dword [ebp - 0xc30], 0xc8
lea edx, [ebp - 0xc20]
mov eax, str.Error_Text
mov ecx, str.Location
cmovne ecx, eax
push 0x400
call fcn.100164a3
mov eax, dword [ebp - 0xc30]
push 0
mov dword [ebp - 0xc2c], eax
lea eax, [ebp - 0xc3c]
push eax
lea eax, [ebp - 0xc20]
mov dword [ebp - 0xc3c], 0x800
push eax
push 0xffff
push dword [ebx + 0xd0]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x1000b32b
call fcn.10001419
test eax, eax
jne 0x1000b1e4
mov dword [ebp - 0xc28], 0x80004005
jmp 0x1000b32b
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1000b32b
and dword [ebp - 4], 0
lea eax, [ebp - 0xc20]
push eax
push str.400001
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
test eax, eax
jne 0x1000b20e
mov ecx, 0x196a
jmp 0x1000b2e1
lea eax, [ebp - 0xc20]
mov dword [ebp - 4], 1
push eax
push str.400002
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
test eax, eax
jne 0x1000b23b
mov ecx, 0x196b
jmp 0x1000b2e1
lea eax, [ebp - 0xc20]
mov dword [ebp - 4], 2
push eax
push str.400003
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
test eax, eax
jne 0x1000b265
mov ecx, 0x196c
jmp 0x1000b2e1
lea eax, [ebp - 0xc20]
mov dword [ebp - 4], 3
push eax
push str.400004
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
test eax, eax
jne 0x1000b28f
mov ecx, 0x196d
jmp 0x1000b2e1
lea eax, [ebp - 0xc20]
mov dword [ebp - 4], 4
push eax
push str.500001
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
test eax, eax
jne 0x1000b2b9
mov ecx, 0x196e
jmp 0x1000b2e1
lea eax, [ebp - 0xc20]
mov dword [ebp - 4], 5
push eax
push str.500002
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
test eax, eax
jne 0x1000b305
mov ecx, 0x196f
push dword [0x1002308c]
lea edx, [ebp - 0xc40]
call fcn.100164a3
mov edi, dword [ebp - 0xc40]
mov dword [ebp - 0xc28], eax
test eax, eax
js 0x1000b32b
push edi
jmp 0x1000b313
lea eax, [ebp - 0xc20]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
push dword [ebp - 0xc2c]
lea ecx, [ebx + 0x98]
call fcn.1000b533
and dword [ebp - 0xc28], 0
mov ecx, ebx
call fcn.1000ad8a
test esi, esi
je 0x1000b33e
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0xc28]
call fcn.10016ddc
ret 0x10