Function at 0x14001d030
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x258]
sub rsp, 0x320
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x140074020]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov r12, r8
mov r15, rdx
mov r14, rcx
mov qword [rsp + 0x68], rcx
lea rax, vtable.GFE::HttpAccess::HttpResponseStream.0
mov qword [rcx], rax
xor edi, edi
mov dword [rcx + 8], edi
lea rbx, [rcx + 0x10]
mov qword [rsp + 0x50], rbx
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov rcx, rbx
call fcn.14001f544
mov qword [rbx], rax
mov qword [r14 + 0x20], rdi
mov qword [r14 + 0x28], rdi
mov qword [r14 + 0x30], rdi
mov qword [r14 + 0x38], rdi
mov qword [r14 + 0x40], rdi
lea r13, [r14 + 0x48]
lea esi, [rdi + 7]
mov qword [r13 + 0x18], rsi
mov qword [r13 + 0x10], rdi
cmp qword [r13 + 0x18], 8
jb 0x14001d0d2
mov rax, qword [r13]
jmp 0x14001d0d5
mov rax, r13
mov word [rax], di
lea rcx, [r15 + 0x20]
cmp qword [rcx + 0x18], 8
jb 0x14001d0e6
mov rcx, qword [rcx]
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rbx, rax
mov rcx, qword [r14 + 0x20]
test rcx, rcx
je 0x14001d10a
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [r14 + 0x20], rbx
mov rcx, rbx
test rbx, rbx
jne 0x14001d1b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x70]
call fcn.14000a708
nop
lea rdx, str.WinHttpOpen_failed_with
mov rcx, rax
call fcn.14000da30
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.14000dad8
mov rcx, rax
lea rdx, [rbp + 0x78]
call fcn.14000a6ec
nop
lea rcx, [rbp + 0x58]
call fcn.14000a7a8
movzx r8d, bx
or r8d, 0x80070000
test ebx, ebx
cmovle r8d, ebx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x16f
lea r9, str.srcgfehttpaccess.cpp
lea rdx, [rbp + 0x78]
lea rcx, [rbp + 0xe0]
call fcn.14001ddc0
lea rdx, [0x140072490]
lea rcx, [rbp + 0xe0]
call fcn.14002c720
nop
mov qword [rsp + 0x50], r14
mov r9d, 8
lea r8, [rsp + 0x50]
lea edx, [r9 + 0x25]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x14001d272
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x70]
call fcn.14000a708
nop
lea rdx, str.WinHttpSetOption_for_WINHTTP_OPTION_CONTEXT_VALUE_failed_with
mov rcx, rax
call fcn.14000da30
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.14000dad8
mov rcx, rax
lea rdx, [rbp + 0x58]
call fcn.14000a6ec
nop
lea rcx, [rbp + 0x78]
call fcn.14000a7a8
movzx r8d, bx
or r8d, 0x80070000
test ebx, ebx
cmovle r8d, ebx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x183
lea r9, str.srcgfehttpaccess.cpp
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0xe0]
call fcn.14001ddc0
lea rdx, [0x140072490]
lea rcx, [rbp + 0xe0]
call fcn.14002c720
nop
xor r9d, r9d
mov r8d, 0x100ff
lea rdx, [0x14001ed80]
mov rcx, qword [r14 + 0x20]
call qword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp rax, 0xffffffffffffffff
jne 0x14001d331
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x70]
call fcn.14000a708
nop
lea rdx, str.WinHttpSetStatusCallback_failed_with
mov rcx, rax
call fcn.14000da30
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.14000dad8
mov rcx, rax
lea rdx, [rbp + 0x58]
call fcn.14000a6ec
nop
lea rcx, [rbp + 0x78]
call fcn.14000a7a8
movzx r8d, bx
or r8d, 0x80070000
test ebx, ebx
cmovle r8d, ebx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x192
lea r9, str.srcgfehttpaccess.cpp
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0xe0]
call fcn.14001ddc0
lea rdx, [0x140072490]
lea rcx, [rbp + 0xe0]
call fcn.14002c720
nop
test r12, r12
je 0x14001d369
xor edx, edx
mov rcx, r12
call fcn.1400277f4
test al, al
je 0x14001d369
mov edx, 1
lea rcx, [rbp + 0xe0]
call fcn.140027810
lea rdx, [0x140072500]
lea rcx, [rbp + 0xe0]
call fcn.14002c720
int3
mov qword [rbp + 0xd0], rsi
mov qword [rbp + 0xc8], rdi
mov word [rbp + 0xb8], di
mov qword [rbp + 0xb0], rsi
mov qword [rbp + 0xa8], rdi
mov word [rbp + 0x98], di
mov word [rsp + 0x48], di
mov dword [rsp + 0x40], edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8, [rbp + 0x98]
lea rdx, [rbp + 0xb8]
mov rcx, r15
call fcn.140020394
test r12, r12
je 0x14001d3f9
xor edx, edx
mov rcx, r12
call fcn.1400277f4
test al, al
je 0x14001d3f9
mov edx, 1
lea rcx, [rbp + 0xe0]
call fcn.140027810
lea rdx, [0x140072500]
lea rcx, [rbp + 0xe0]
call fcn.14002c720
int3
lea rdx, [rbp + 0xb8]
cmp qword [rbp + 0xd0], 8
cmovae rdx, qword [rbp + 0xb8]
xor r9d, r9d
movzx r8d, word [rsp + 0x48]
mov rcx, qword [r14 + 0x20]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rbx, rax
mov rcx, qword [r14 + 0x28]
test rcx, rcx
je 0x14001d435
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [r14 + 0x28], rbx
test rbx, rbx
jne 0x14001d4dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x70]
call fcn.14000a708
nop
lea rdx, str.WinHttpConnect_failed_with
mov rcx, rax
call fcn.14000da30
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.14000dad8
mov rcx, rax
lea rdx, [rbp + 0x58]
call fcn.14000a6ec
nop
lea rcx, [rbp + 0x78]
call fcn.14000a7a8
movzx r8d, bx
or r8d, 0x80070000
test ebx, ebx
cmovle r8d, ebx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x1be
lea r9, str.srcgfehttpaccess.cpp
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0xe0]
call fcn.14001ddc0
lea rdx, [0x140072490]
lea rcx, [rbp + 0xe0]
call fcn.14002c720
nop
test r12, r12
je 0x14001d515
xor edx, edx
mov rcx, r12
call fcn.1400277f4
test al, al
je 0x14001d515
mov edx, 1
lea rcx, [rbp + 0xe0]
call fcn.140027810
lea rdx, [0x140072500]
lea rcx, [rbp + 0xe0]
call fcn.14002c720
int3
lea rsi, [rbp + 0x98]
cmp qword [rbp + 0xb0], 8
cmovae rsi, qword [rbp + 0x98]
mov rdi, qword [r14 + 0x28]
xor ebx, ebx
mov eax, 0x800000
cmp dword [rsp + 0x40], 2
cmove ebx, eax
mov ecx, dword [r15 + 0x40]
call fcn.14001e4cc
mov rdx, rax
mov dword [rsp + 0x30], ebx
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rsi
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbx, rax
mov rcx, qword [r14 + 0x30]
xor edi, edi
test rcx, rcx
je 0x14001d57e
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [r14 + 0x30], rbx
cmp dword [rsp + 0x40], 2
jne 0x14001d667
mov dword [rsp + 0x40], 0xa00
call fcn.140027408
mov ecx, dword [rsp + 0x40]
mov edx, 0x80
cmp eax, 7
cmovl ecx, edx
mov dword [rsp + 0x40], ecx
lea r9d, [rdx - 0x7c]
lea r8, [rsp + 0x40]
lea edx, [r9 + 0x50]
mov rcx, qword [r14 + 0x20]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x14001d667
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x70]
call fcn.14000a708
nop
lea rdx, str.WinHttpSetOption_failed_with
mov rcx, rax
call fcn.14000da30
mov rcx, rax
lea rdx, [rsp + 0x48]
call fcn.14000dad8
mov rcx, rax
lea rdx, [rbp + 0x58]
call fcn.14000a6ec
nop
lea rcx, [rbp + 0x78]
call fcn.14000a7a8
movzx r8d, bx
or r8d, 0x80070000
test ebx, ebx
cmovle r8d, ebx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x1e6
lea r9, str.srcgfehttpaccess.cpp
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0xe0]
call fcn.14001ddc0
lea rdx, [0x140072490]
lea rcx, [rbp + 0xe0]
call fcn.14002c720
nop
mov rcx, qword [r14 + 0x30]
test rcx, rcx
jne 0x14001d70f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x70]
call fcn.14000a708
nop
lea rdx, str.WinHttpOpenRequest_failed_with
mov rcx, rax
call fcn.14000da30
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.14000dad8
mov rcx, rax
lea rdx, [rbp + 0x58]
call fcn.14000a6ec
nop
lea rcx, [rbp + 0x78]
call fcn.14000a7a8
movzx r8d, bx
or r8d, 0x80070000
test ebx, ebx
cmovle r8d, ebx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x1f1
lea r9, str.srcgfehttpaccess.cpp
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0xe0]
call fcn.14001ddc0
lea rdx, [0x140072490]
lea rcx, [rbp + 0xe0]
call fcn.14002c720
nop
mov r8d, dword [r15 + 0x70]
test r8d, r8d
je 0x14001d722
mov edx, 3
call fcn.1400201e0
mov r8d, dword [r15 + 0x74]
test r8d, r8d
je 0x14001d739
mov edx, 5
mov rcx, qword [r14 + 0x30]
call fcn.1400201e0
mov r8d, dword [r15 + 0x78]
test r8d, r8d
je 0x14001d750
mov edx, 6
mov rcx, qword [r14 + 0x30]
call fcn.1400201e0
mov r8d, dword [r15 + 0x7c]
test r8d, r8d
je 0x14001d767
mov edx, 7
mov rcx, qword [r14 + 0x30]
call fcn.1400201e0
lea rdx, [r15 + 0x48]
mov rcx, qword [r14 + 0x30]
call fcn.14001f598
test r12, r12
je 0x14001d7ac
xor edx, edx
mov rcx, r12
call fcn.1400277f4
test al, al
je 0x14001d7ac
mov edx, 1
lea rcx, [rbp + 0xe0]
call fcn.140027810
lea rdx, [0x140072500]
lea rcx, [rbp + 0xe0]
call fcn.14002c720
int3
mov rax, qword [r15 + 0x60]
cmp qword [r15 + 0x58], rax
jne 0x14001d7ba
mov edx, edi
jmp 0x14001d7c1
mov rdx, rax
sub rdx, qword [r15 + 0x58]
cmp qword [r15 + 0x58], rax
jne 0x14001d7cb
mov ecx, edi
jmp 0x14001d7d2
mov rcx, rax
sub rcx, qword [r15 + 0x58]
cmp qword [r15 + 0x58], rax
mov r9, rdi
je 0x14001d7df
mov r9, qword [r15 + 0x58]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], ecx
xor r8d, r8d
xor edx, edx
mov rcx, qword [r14 + 0x30]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x14001d8a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x70]
call fcn.14000a708
nop
lea rdx, str.WinHttpSendRequest_failed_with
mov rcx, rax
call fcn.14000da30
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.14000dad8
mov rcx, rax
lea rdx, [rbp + 0x58]
call fcn.14000a6ec
nop
mov rdx, r13
lea rcx, [rbp + 0x78]
call fcn.14000a7c0
movzx r8d, bx
or r8d, 0x80070000
test ebx, ebx
cmovle r8d, ebx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x220
lea r9, str.srcgfehttpaccess.cpp
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0xe0]
call fcn.14001ddc0
lea rdx, [0x140072490]
lea rcx, [rbp + 0xe0]
call fcn.14002c720
nop
test r12, r12
je 0x14001d8d9
xor edx, edx
mov rcx, r12
call fcn.1400277f4
test al, al
je 0x14001d8d9
mov edx, 1
lea rcx, [rbp + 0xe0]
call fcn.140027810
lea rdx, [0x140072500]
lea rcx, [rbp + 0xe0]
call fcn.14002c720
int3
xor edx, edx
mov rcx, qword [r14 + 0x30]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x40], eax
cmp qword [r13 + 0x10], rdi
jne 0x14001d937
mov rdx, qword [r14 + 0x30]
lea rcx, [rbp + 0x78]
call fcn.14001f984
mov rdi, rax
cmp r13, rax
je 0x14001d927
xor r8d, r8d
mov dl, 1
mov rcx, r13
call fcn.14000b5d0
mov rdx, rdi
mov rcx, r13
call fcn.14000b89c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x78]
call fcn.14000b5d0
xor edi, edi
test esi, esi
jne 0x14001d9d1
lea rcx, [rsp + 0x70]
call fcn.14000a708
nop
lea rdx, str.WinHttpReceiveResponse_failed_with
mov rcx, rax
call fcn.14000da30
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.14000dad8
mov rcx, rax
lea rdx, [rbp + 0x58]
call fcn.14000a6ec
nop
mov rdx, r13
lea rcx, [rbp + 0x78]
call fcn.14000a7c0
movzx r8d, bx
or r8d, 0x80070000
test ebx, ebx
cmovle r8d, ebx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x23b
lea r9, str.srcgfehttpaccess.cpp
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0xe0]
call fcn.14001ddc0
lea rdx, [0x140072490]
lea rcx, [rbp + 0xe0]
call fcn.14002c720
nop
mov r8, r13
mov rdx, qword [r14 + 0x30]
lea rcx, [rbp + 0x1f0]
call fcn.14001fc0c
nop
mov rbx, qword [r14 + 0x30]
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rbp + 0xe0]
call fcn.14000be64
nop
lea rdx, str.HTTP_request
lea rcx, [rbp + 0xe0]
call fcn.14001078c
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
and dword [rbp + rcx + 0xf8], 0xfffff9ff
bts dword [rbp + rcx + 0xf8], 0xb
mov rdx, rbx
lea rcx, [rbp + 0xe0]
call fcn.14001e128
lea rdx, str.:_response_headers:_n
lea rcx, [rbp + 0xe0]
call fcn.14001078c
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp + 0xe0]
call fcn.140010968
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0xe0]
call fcn.14000a6ec
nop
lea rdx, [rbp + 0x58]
mov ecx, 4
call fcn.14001b7a4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x58]
call fcn.14000b5d0
nop
lea rcx, [rbp + 0x168]
call fcn.14000a844
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x168], rax
lea rcx, [rbp + 0x168]
call fcn.140029688
nop
mov qword [rbp + 0x1e8], 7
mov qword [rbp + 0x1e0], rdi
mov word [rbp + 0x1d0], di
lea r8, [r14 + 8]
lea rdx, [r14 + 0x10]
lea rcx, [rbp + 0x1f0]
call fcn.14001fe8c
lea rdx, [rsp + 0x40]
lea rcx, [r14 + 0x10]
call fcn.14001c728
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001db13
mov rax, qword [rcx]
mov qword [r14 + 0x40], rax
mov edx, 8
call fcn.140028610
test r12, r12
je 0x14001db4b
xor edx, edx
mov rcx, r12
call fcn.1400277f4
test al, al
je 0x14001db4b
mov edx, 1
lea rcx, [rbp + 0xe0]
call fcn.140027810
lea rdx, [0x140072500]
lea rcx, [rbp + 0xe0]
call fcn.14002c720
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x1d0]
call fcn.14000b5d0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x1f0]
call fcn.14000b5d0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x98]
call fcn.14000b5d0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xb8]
call fcn.14000b5d0
nop
mov rax, r14
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140027920
mov rbx, qword [rsp + 0x378]
add rsp, 0x320
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret