Function at 0x140003ab0
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, 0x1d0
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov edi, r9d
mov rsi, r8
mov r14, 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 + 0x68]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
mov dword [rsp + 0x40], r15d
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
mov qword [rsp + 0x48], r15
mov r12d, r15d
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
mov dword [rbx + 0x20], 0x1f4
mov dword [rsp + 0x80], 4
mov r8d, dword [rbx + 0x58]
xor edx, edx
mov rcx, qword [rbx + 0x50]
call sub.MSVCR120.dll_memset
mov dword [rbx + 0x58], r15d
mov ecx, dword [rbx + 8]
cmp ecx, 1
jne 0x140003c0f
lea rdx, [0x140010f38]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_1498]
test edi, edi
je 0x140003c6d
lea rdx, [0x140010eb0]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc120u.dll_Ordinal_1665]
lea rax, [rsp + 0xb8]
mov qword [rsp + 0xb0], rax
lea r8d, [r15 + 3]
mov rdx, rsi
lea rcx, [rsp + 0xb0]
call fcn.140001200
nop
mov r8d, edi
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 0x140003bf1
call qword [sym.imp.MSVCR120.dll_free]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc120u.dll_Ordinal_1662]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
jmp 0x140003c6d
test ecx, ecx
je 0x140003c2e
sub ecx, 2
je 0x140003c25
dec ecx
jne 0x140003c40
lea rdx, str.PATCH
jmp 0x140003c35
lea rdx, [0x140010f40]
jmp 0x140003c35
lea rdx, str.POST
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_1498]
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x50]
call fcn.1400038b0
nop
mov rdx, rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc120u.dll_Ordinal_1496]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
mov r12d, edi
jmp 0x140003c72
mov rsi, qword [rsp + 0x48]
mov rax, qword [rbx + 0x38]
cmp dword [rax - 0x10], 0
je 0x140003ca9
mov rax, qword [rsp + 0x60]
cmp dword [rax - 0x10], 0
jle 0x140003c99
lea rdx, [0x140010f64]
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc120u.dll_Ordinal_2373]
lea rdx, [rbx + 0x38]
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc120u.dll_Ordinal_2372]
nop
mov rdx, r14
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc120u.dll_Ordinal_286]
nop
mov edi, pe_nt_image_headers64
lea r8, [0x140010974]
lea rdx, str.http:__
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc120u.dll_Ordinal_12313]
test eax, eax
jne 0x140003cfd
lea r8, [0x140010974]
lea rdx, str.https:__
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc120u.dll_Ordinal_12313]
mov ecx, 0x800100
test eax, eax
cmovg edi, ecx
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_280]
nop
xor r8d, r8d
lea rdx, [0x140010f94]
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc120u.dll_Ordinal_4467]
test eax, eax
js 0x140003d5d
mov edx, eax
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc120u.dll_Ordinal_13902]
lea r8, [0x140010974]
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 + 0x68]
call qword [sym.imp.mfc120u.dll_Ordinal_7629]
xor r8d, r8d
xor r9d, r9d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r13, rax
mov qword [rsp + 0x98], rax
test rax, rax
jne 0x140003d9e
mov dword [rsp + 0x8c], r15d
lea rdx, [0x140016400]
lea rcx, [rsp + 0x8c]
call sub.MSVCR120.dll__CxxThrowException
mov dword [rsp + 0x30], edi
xor edi, edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r15, rax
mov qword [rsp + 0x90], rax
test rax, rax
jne 0x140003def
mov dword [rsp + 0x88], edi
lea rdx, [0x140016400]
lea rcx, [rsp + 0x88]
call sub.MSVCR120.dll__CxxThrowException
mov edx, dword [rbx + 0x1c]
test edx, edx
je 0x140003e1d
mov r8d, dword [rbx + 0x10]
test r8d, r8d
je 0x140003e1d
mov r9d, dword [rbx + 0x14]
test r9d, r9d
je 0x140003e1d
mov eax, dword [rbx + 0x18]
test eax, eax
je 0x140003e1d
mov dword [rsp + 0x20], eax
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov rdx, qword [rsp + 0x60]
mov r8d, dword [rdx - 0x10]
test r8d, r8d
cmove rdx, rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
mov r9, rsi
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x140003e61
mov dword [rsp + 0x78], edi
lea rdx, [0x140016400]
lea rcx, [rsp + 0x78]
call sub.MSVCR120.dll__CxxThrowException
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x140003e85
mov dword [rsp + 0x70], edi
lea rdx, [0x140016400]
lea rcx, [rsp + 0x70]
call sub.MSVCR120.dll__CxxThrowException
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x80]
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 0x140003ec5
mov dword [rsp + 0x74], edi
lea rdx, [0x140016400]
lea rcx, [rsp + 0x74]
call sub.MSVCR120.dll__CxxThrowException
mov r12b, 1
nop dword [rax + rax]
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x140003efd
mov dword [rsp + 0x84], edi
lea rdx, [0x140016400]
lea rcx, [rsp + 0x84]
call sub.MSVCR120.dll__CxxThrowException
mov esi, dword [rbx + 0x58]
mov edi, dword [rsp + 0x40]
add esi, edi
cmp esi, dword [rbx + 0x5c]
jbe 0x140003f66
mov rcx, qword [rbx + 0x50]
test rcx, rcx
jne 0x140003f1e
mov ecx, esi
call qword [sym.imp.MSVCR120.dll_malloc]
jmp 0x140003f2a
mov edx, esi
call qword [sym.imp.MSVCR120.dll_realloc]
mov edi, dword [rsp + 0x40]
mov r14, rax
test rax, rax
jne 0x140003f4b
xor r15d, r15d
mov dword [rsp + 0x7c], r15d
lea rdx, [0x140016400]
lea rcx, [rsp + 0x7c]
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 edi, 0
cmove ecx, edi
movzx r12d, cl
mov eax, dword [rsp + 0x40]
test eax, eax
cmove r12d, edi
add dword [rbx + 0x58], eax
test r12b, r12b
jne 0x140003ed0
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 0x140003fd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2ee2
jne 0x140003fe9
mov byte [rbx + 0x40], 1
test r13, r13
je 0x140003ff7
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r15, r15
je 0x140004005
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [rbx + 0x20], 0x12c
setb bl
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
movzx eax, bl
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14000ce90
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret