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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2f8
mov qword [rsp + 0x120], 0xfffffffffffffffe
mov rax, qword [0x14004b078]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov dword [rsp + 0x64], 0
mov rcx, qword [rsp + 0x318]
call fcn.14000db90
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.14001c680
mov dword [rsp + 0x60], eax
mov r8d, 0xfde9
mov rdx, qword [rsp + 0x308]
lea rcx, [rsp + 0x168]
call fcn.1400100c0
nop
mov r8d, 0xfde9
mov rdx, qword [rsp + 0x310]
lea rcx, [rsp + 0x148]
call fcn.1400100c0
nop
lea rcx, [rsp + 0x108]
call fcn.140008f30
nop
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x88], 0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x50], 0
movzx r8d, byte [rsp + 0x58]
lea rdx, [0x140035764]
lea rcx, [rsp + 0x140]
call fcn.1400064d0
mov rcx, rax
call fcn.14000eca0
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x1b8]
call fcn.140008920
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov r8d, 0xfde9
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x198]
call fcn.1400100c0
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0xb8]
call fcn.14000dbc0
mov qword [rsp + 0x128], rax
lea rcx, [rsp + 0x198]
call fcn.140009b80
nop
lea rcx, [rsp + 0x1b8]
call fcn.140009b50
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Load
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x14000b71f
lea rcx, [rsp + 0x168]
call fcn.14000dbc0
xor r9d, r9d
mov r8w, 0x50
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x70], rax
lea rax, [0x14003577c]
mov qword [rsp + 0xc0], rax
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x1f8]
call fcn.140008920
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov r8d, 0xfde9
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x1d8]
call fcn.1400100c0
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0xd8]
call fcn.14000dbc0
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0x1d8]
call fcn.140009b80
nop
lea rcx, [rsp + 0x1f8]
call fcn.140009b50
cmp qword [rsp + 0x70], 0
je 0x14000b7fa
lea rcx, [rsp + 0x148]
call fcn.14000dbc0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.POST
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x50], rax
movzx r8d, byte [rsp + 0x59]
lea rdx, [0x140035798]
lea rcx, [rsp + 0x2a8]
call fcn.140001b30
mov rcx, rax
call fcn.14000f420
mov qword [rsp + 0xe0], rax
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x238]
call fcn.140008920
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
mov r8d, 0xfde9
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x218]
call fcn.1400100c0
mov qword [rsp + 0xf8], rax
mov rcx, qword [rsp + 0xf8]
call fcn.14000dbc0
mov qword [rsp + 0x138], rax
lea rcx, [rsp + 0x218]
call fcn.140009b80
nop
lea rcx, [rsp + 0x238]
call fcn.140009b50
mov dword [rsp + 0x80], 0xffffffff
cmp qword [rsp + 0x50], 0
je 0x14000b8f6
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x90]
mov r8d, dword [rsp + 0x80]
lea rdx, str.Content_Type:_application_x_www_form_urlencoded_r_n
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x14000b90e
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x14000ba8f
mov dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x14000b975
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x84], eax
movzx r8d, byte [rsp + 0x5a]
lea rdx, str.Error__u_in_WinHttpQueryDataAvailable._n
lea rcx, [rsp + 0x278]
call fcn.140002880
mov rcx, rax
call fcn.14000f2e0
mov ecx, dword [rsp + 0x84]
mov edx, ecx
mov rcx, rax
call fcn.140011db0
mov eax, dword [rsp + 0x40]
inc eax
mov eax, eax
mov ecx, eax
call fcn.140014ee8
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x14000b9d8
movzx r8d, byte [rsp + 0x5b]
lea rdx, str.Out_of_memory_n
lea rcx, [rsp + 0x188]
call fcn.140004f10
mov rcx, rax
call fcn.14000f6a0
mov rcx, rax
call fcn.140011db0
mov dword [rsp + 0x40], 0
jmp 0x14000ba84
mov eax, dword [rsp + 0x40]
inc eax
mov eax, eax
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x68]
call fcn.140016310
lea r9, [rsp + 0x88]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x14000ba26
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.140011db0
jmp 0x14000ba6a
mov dword [rsp + 0x4c], 0
jmp 0x14000ba3a
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x4c], eax
jae 0x14000ba6a
movsxd rax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x68]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x44], al
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x108]
call fcn.140010bd0
jmp 0x14000ba30
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x98]
call fcn.140014ee0
cmp dword [rsp + 0x40], 0
ja 0x14000b919
cmp dword [rsp + 0x48], 0
jne 0x14000bad6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x8c], eax
movzx r8d, byte [rsp + 0x5c]
lea rdx, str.Error__d_has_occurred._n
lea rcx, [rsp + 0x258]
call fcn.140002e40
mov rcx, rax
call fcn.14000f240
mov ecx, dword [rsp + 0x8c]
mov edx, ecx
mov rcx, rax
call fcn.140011db0
cmp qword [rsp + 0x50], 0
je 0x14000bae9
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rsp + 0x70], 0
je 0x14000bafc
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rsp + 0x78], 0
je 0x14000bb0f
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, [rsp + 0x108]
mov rcx, qword [rsp + 0x300]
call fcn.140008ea0
mov eax, dword [rsp + 0x64]
or eax, 1
mov dword [rsp + 0x64], eax
lea rcx, [rsp + 0x108]
call fcn.140009d00
nop
lea rcx, [rsp + 0x148]
call fcn.140009b80
nop
lea rcx, [rsp + 0x168]
call fcn.140009b80
nop
mov rcx, qword [rsp + 0x308]
call fcn.140009b50
nop
mov rcx, qword [rsp + 0x310]
call fcn.140009b50
nop
mov rcx, qword [rsp + 0x318]
call fcn.140009b50
mov rax, qword [rsp + 0x300]
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.140015310
add rsp, 0x2f8
ret