Function at 0x140003270
Capabilities:
Prepare http request
Read http header
Receive http response

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x9d0
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x9c0], rax
mov esi, r9d
mov r12, r8
mov r13, rdx
mov rbx, rcx
mov qword [rsp + 0xa0], rcx
mov byte [rcx + 0x40], 0
xor r15d, r15d
mov qword [rsp + 0x90], r15
mov qword [rsp + 0x98], r15
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
mov dword [rsp + 0x40], r15d
mov r14d, r15d
mov edi, r15d
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x48], r15d
mov r15d, 0x400
mov r8d, r15d
xor edx, edx
lea rcx, [rsp + 0x1c0]
call sub.MSVCR120.dll_memset
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
mov dword [rbx + 0x20], 0x1f4
mov dword [rsp + 0x74], 4
mov r8d, dword [rbx + 0x58]
xor edx, edx
mov rcx, qword [rbx + 0x50]
call sub.MSVCR120.dll_memset
xor eax, eax
mov dword [rbx + 0x58], eax
lea rcx, [rsp + 0x60]
cmp dword [rbx + 8], 1
jne 0x1400033df
lea rdx, [0x14000fe18]
call qword [sym.imp.mfc120u.dll_Ordinal_1498]
test esi, esi
je 0x140003456
lea rdx, [0x14000fe20]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_1665]
lea rax, [rsp + 0xb8]
mov qword [rsp + 0xb0], rax
lea r8d, [r14 + 3]
mov rdx, r12
lea rcx, [rsp + 0xb0]
call fcn.140003df0
nop
mov r8d, esi
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_287]
nop
lea rax, [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
cmp rcx, rax
je 0x1400033c1
call qword [sym.imp.MSVCR120.dll_free]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_1662]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
jmp 0x140003456
lea rdx, str.POST
call qword [sym.imp.mfc120u.dll_Ordinal_1498]
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.140003070
mov rcx, qword [rax]
lea rdx, [rsp + 0x1c0]
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rdx], ax
lea rcx, [rcx + 2]
lea rdx, [rdx + 2]
test ax, ax
jne 0x140003410
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
lea r14, [rsp + 0x1c0]
lea rax, [rsp + 0x1c0]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140003442
mov qword [rsp + 0x68], r12
mov r12d, esi
jmp 0x14000345b
mov r12d, dword [rsp + 0x48]
mov r8, qword [rbx + 0x38]
mov eax, dword [r8 - 0x10]
test eax, eax
je 0x1400034f2
sub r15d, edi
cmp eax, r15d
jae 0x1400034f2
test edi, edi
je 0x1400034a0
lea rcx, [rsp + 0x1c0]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x140003483
mov eax, dword [0x14000fe34]
mov dword [rcx], eax
movzx eax, word [0x14000fe38]
mov word [rcx + 4], ax
lea rcx, [rsp + 0x1c0]
sub rcx, 2
nop dword [rax]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x1400034b0
xor edx, edx
nop dword [rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x1400034c0
lea r14, [rsp + 0x1c0]
xor r15d, r15d
mov eax, r15d
mov ecx, 2
test edi, edi
cmovne eax, ecx
add eax, dword [r8 - 0x10]
add edi, eax
jmp 0x1400034f5
xor r15d, r15d
mov rdx, r13
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc120u.dll_Ordinal_286]
nop
mov esi, 0x100
lea r8, [0x14000f974]
lea rdx, str.http:__
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc120u.dll_Ordinal_12313]
test eax, eax
jne 0x140003549
lea r8, [0x14000f974]
lea rdx, str.https:__
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc120u.dll_Ordinal_12313]
mov ecx, 0x800100
test eax, eax
cmovg esi, ecx
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_280]
nop
xor r8d, r8d
lea rdx, [0x14000fe64]
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc120u.dll_Ordinal_4467]
test eax, eax
js 0x1400035a9
mov edx, eax
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc120u.dll_Ordinal_13902]
lea r8, [0x14000f974]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_12313]
mov r8, qword [rsp + 0x50]
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_7629]
xor r8d, r8d
xor r9d, r9d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r13, rax
mov qword [rsp + 0x98], rax
test rax, rax
jne 0x1400035ea
mov dword [rsp + 0x80], r15d
lea rdx, [0x1400157a0]
lea rcx, [rsp + 0x80]
call sub.MSVCR120.dll__CxxThrowException
mov dword [rsp + 0x30], esi
xor esi, esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r15, rax
mov qword [rsp + 0x90], rax
test rax, rax
jne 0x14000363b
mov dword [rsp + 0x88], esi
lea rdx, [0x1400157a0]
lea rcx, [rsp + 0x88]
call sub.MSVCR120.dll__CxxThrowException
mov edx, dword [rbx + 0x1c]
test edx, edx
je 0x140003669
mov r8d, dword [rbx + 0x10]
test r8d, r8d
je 0x140003669
mov r9d, dword [rbx + 0x14]
test r9d, r9d
je 0x140003669
mov eax, dword [rbx + 0x18]
test eax, eax
je 0x140003669
mov dword [rsp + 0x20], eax
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test edi, edi
cmove r14, rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
mov r9, qword [rsp + 0x68]
mov r8d, edi
mov rdx, r14
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x1400036ab
mov dword [rsp + 0x7c], esi
lea rdx, [0x1400157a0]
lea rcx, [rsp + 0x7c]
call sub.MSVCR120.dll__CxxThrowException
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x1400036d5
mov dword [rsp + 0x84], esi
lea rdx, [0x1400157a0]
lea rcx, [rsp + 0x84]
call sub.MSVCR120.dll__CxxThrowException
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rbx + 0x20]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x140003712
mov dword [rsp + 0x78], esi
lea rdx, [0x1400157a0]
lea rcx, [rsp + 0x78]
call sub.MSVCR120.dll__CxxThrowException
mov r12b, 1
nop word [rax + rax]
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x14000374d
mov dword [rsp + 0x8c], esi
lea rdx, [0x1400157a0]
lea rcx, [rsp + 0x8c]
call sub.MSVCR120.dll__CxxThrowException
mov esi, dword [rbx + 0x58]
mov edi, dword [rsp + 0x40]
add esi, edi
cmp esi, dword [rbx + 0x5c]
jbe 0x1400037b2
mov rcx, qword [rbx + 0x50]
test rcx, rcx
jne 0x14000376e
mov ecx, esi
call qword [sym.imp.MSVCR120.dll_malloc]
jmp 0x14000377a
mov edx, esi
call qword [sym.imp.MSVCR120.dll_realloc]
mov edi, dword [rsp + 0x40]
mov r14, rax
test rax, rax
jne 0x140003797
mov dword [rsp + 0x70], eax
lea rdx, [0x1400157a0]
lea rcx, [rsp + 0x70]
call sub.MSVCR120.dll__CxxThrowException
mov r8d, edi
mov ecx, dword [rbx + 0x58]
add rcx, r14
xor edx, edx
call sub.MSVCR120.dll_memset
mov dword [rbx + 0x5c], esi
mov qword [rbx + 0x50], r14
mov edi, dword [rsp + 0x40]
mov edx, dword [rbx + 0x58]
add rdx, qword [rbx + 0x50]
lea r9, [rsp + 0x40]
mov r8d, edi
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
movzx ecx, r12b
test eax, eax
mov esi, 0
cmove ecx, esi
movzx r12d, cl
mov eax, dword [rsp + 0x40]
test eax, eax
cmove r12d, esi
add dword [rbx + 0x58], eax
test r12b, r12b
jne 0x140003720
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
jmp 0x140003824
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2ee2
jne 0x140003835
mov byte [rbx + 0x40], 1
test r13, r13
je 0x140003843
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r15, r15
je 0x140003851
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [rbx + 0x20], 0x12c
setb bl
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
movzx eax, bl
mov rcx, qword [rsp + 0x9c0]
xor rcx, rsp
call fcn.14000cd50
add rsp, 0x9d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret