Function at 0x10001510
Capabilities:
Prepare http request
Send data
Send http request
Set http header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x10018004]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
mov ebx, dword [ebp + 0xc]
xorps xmm0, xmm0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x28], 0
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x3c], xmm0
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x4c], xmm0
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x24], 0x3c
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x54], 0xffffffff
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x10001662
cmp dword [esp + 0x1c], 0
jbe 0x100015d9
mov eax, dword [esp + 0x20]
cmp eax, dword [esi + 0x24]
je 0x100015d9
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100015bb
push eax
call fcn.10006048
add esp, 4
push str.request_t_url_used_a_different_scheme_than_the_connection_t_was_initialized_with
call fcn.10005ff4
add esp, 4
mov dword [esi + 0x10], eax
mov ecx, edi
push 0
call fcn.10001a50
jmp 0x100018b1
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10001623
push eax
push dword [esi + 0x28]
push dword [esp + 0x2c]
call fcn.100060e8
add esp, 0xc
test eax, eax
je 0x10001623
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10001605
push eax
call fcn.10006048
add esp, 4
push str.request_t_url_used_a_different_host_name_than_the_connection_t_was_initialized_with
call fcn.10005ff4
add esp, 4
mov dword [esi + 0x10], eax
mov ecx, edi
push 0
call fcn.10001a50
jmp 0x100018b1
mov ax, word [esp + 0x2c]
cmp ax, word [esi + 0x30]
je 0x1000165c
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1000163e
push eax
call fcn.10006048
add esp, 4
push str.request_t_url_used_a_different_port_than_the_connection_t_was_initialized_with
call fcn.10005ff4
add esp, 4
mov dword [esi + 0x10], eax
mov ecx, edi
push 0
call fcn.10001a50
jmp 0x100018b1
mov ecx, dword [esp + 0x40]
jmp 0x10001666
mov ecx, dword [esp + 0x50]
xor edx, edx
mov dword [esp + 0x64], 0x10014f28
cmp dword [esi + 0x24], 2
mov eax, 0x800000
xorps xmm0, xmm0
mov dword [esp + 0x68], 0
cmovne eax, edx
movlpd qword [esp + 0x58], xmm0
push eax
lea eax, [esp + 0x68]
mov dword [esp + 0x5c], vtable.http::nostl::handle_manager_t.0
push eax
push edx
push edx
push ecx
push dword [ebx + 4]
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x5c], ebx
test ebx, ebx
jne 0x100016e6
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100016c8
push eax
call fcn.10006048
add esp, 4
push str.WinHttpOpenRequest___failed
call fcn.10005ff4
add esp, 4
mov dword [esi + 0x10], eax
mov ecx, edi
push 0
call fcn.10001a50
jmp 0x100018b1
mov edx, dword [esp + 0xc]
xor eax, eax
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x54], 0
or ecx, dword [edx + 0x1c]
test cl, 1
je 0x1000170c
mov dword [esp + 0x54], 0x1000
mov eax, 0x1000
test cl, 2
je 0x1000171a
or eax, 0x2000
mov dword [esp + 0x54], eax
push 4
lea eax, [esp + 0x58]
push eax
push 0x1f
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x10001763
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1000173e
push eax
call fcn.10006048
add esp, 4
push str.WinHttpSetOption_WINHTTP_OPTION_SECURITY_FLAGS__on_request_t_handle_failed
call fcn.10005ff4
add esp, 4
mov dword [esi + 0x10], eax
mov ecx, edi
push 0
call fcn.10001a50
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x100018b1
mov eax, dword [esi + 0x58]
push 4
mov dword [esp + 0x64], eax
lea eax, [esp + 0x64]
push eax
push 5
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x100017b3
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1000178e
push eax
call fcn.10006048
add esp, 4
push str.WinHttpSetOption_WINHTTP_OPTION_SEND_TIMEOUT__on_request_t_handle_failed
call fcn.10005ff4
add esp, 4
mov dword [esi + 0x10], eax
mov ecx, edi
push 0
call fcn.10001a50
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x100018b1
mov eax, dword [esp + 0xc]
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x100017ea
nop
push 0xa0000000
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebx + 4]
push dword [esp + 0x5c]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x1000181f
mov ebx, dword [ebx]
test ebx, ebx
jne 0x100017c0
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x10]
mov ebx, dword [esp + 0x50]
push 0
push eax
push 0
push 0
push 0
push 0
push ebx
mov dword [esp + 0x2c], eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x10001841
push str.WinHttpSendRequest___failed
lea ecx, [esi + 8]
call fcn.10001060
push 0
jmp 0x100018a1
push str.WinHttpAddRequestHeaders___failed
lea ecx, [esi + 8]
call fcn.10001060
push 0
mov ecx, edi
call fcn.10001a50
push dword [esp + 0x50]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x100018b1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10001898
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], 0
push ecx
push eax
mov eax, dword [esp + 0x14]
push dword [eax + 0xc]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x1000187a
push str.WinHttpWriteData___failed
lea ecx, [esi + 8]
call fcn.10001060
push 0
jmp 0x100018a1
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x50]
cmp eax, dword [edx + 0x10]
je 0x10001898
push str.WinHttpWriteData_did_not_send_entire_request_t_body
lea ecx, [esi + 8]
call fcn.10001060
push 0
jmp 0x100018a1
mov dword [esp + 0x5c], 0
push ebx
mov ecx, edi
call fcn.10001a50
lea ecx, [esp + 0x58]
call fcn.10001110
mov ecx, dword [esp + 0x6c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100028d3
mov esp, ebp
pop ebp
ret 8