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

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x100]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x60], eax
movsxd rax, dword [rsp + 0x60]
shl rax, 1
mov rcx, rax
call fcn.140018648
mov qword [rsp + 0xa8], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x100]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x110]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x64], eax
movsxd rax, dword [rsp + 0x64]
shl rax, 1
mov rcx, rax
call fcn.140018648
mov qword [rsp + 0xb0], rax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x110]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x14003fbc0]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x1400035bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x90], eax
lea rdx, str.Error:Open_session_failed:
lea rcx, [0x1400463c0]
call fcn.14000a710
mov ecx, dword [rsp + 0x90]
mov edx, ecx
mov rcx, rax
call fcn.140003cb0
lea rdx, [0x14000aab0]
mov rcx, rax
call fcn.1400040c0
xor ecx, ecx
call fcn.140013c44
xor r9d, r9d
movzx r8d, word [rsp + 0x108]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x140003635
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x94], eax
lea rdx, str.Error:Connect_failed:
lea rcx, [0x1400463c0]
call fcn.14000a710
mov ecx, dword [rsp + 0x94]
mov edx, ecx
mov rcx, rax
call fcn.140003cb0
lea rdx, [0x14000aab0]
mov rcx, rax
call fcn.1400040c0
xor ecx, ecx
call fcn.140013c44
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0xb0]
lea rdx, [0x14003fc20]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400036c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x98], eax
lea rdx, str.Error:OpenRequest_failed:
lea rcx, [0x1400463c0]
call fcn.14000a710
mov ecx, dword [rsp + 0x98]
mov edx, ecx
mov rcx, rax
call fcn.140003cb0
lea rdx, [0x14000aab0]
mov rcx, rax
call fcn.1400040c0
xor ecx, ecx
call fcn.140013c44
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140003740
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x9c], eax
lea rdx, str.Error:SendRequest_failed:
lea rcx, [0x1400463c0]
call fcn.14000a710
mov ecx, dword [rsp + 0x9c]
mov edx, ecx
mov rcx, rax
call fcn.140003cb0
lea rdx, [0x14000aab0]
mov rcx, rax
call fcn.1400040c0
xor ecx, ecx
call fcn.140013c44
jmp 0x140003751
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0xe0], 0
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x88], 0
cmp dword [rsp + 0x50], 0
je 0x14000397e
mov dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x1400037ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xa0], eax
lea rdx, [0x14003fc68]
lea rcx, [0x1400463c0]
call fcn.14000a710
mov ecx, dword [rsp + 0xa0]
mov edx, ecx
mov rcx, rax
call fcn.140003cb0
lea rdx, [0x14000aab0]
mov rcx, rax
call fcn.1400040c0
jmp 0x1400038e0
cmp dword [rsp + 0x40], 0
jne 0x1400037fa
jmp 0x1400038e0
mov eax, dword [rsp + 0x40]
inc eax
mov eax, eax
mov ecx, eax
call fcn.14000d824
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14000384d
lea rdx, str.Out_of_memory.
lea rcx, [0x1400463c0]
call fcn.14000a710
lea rdx, [0x14000aab0]
mov rcx, rax
call fcn.1400040c0
jmp 0x1400038e0
mov eax, dword [rsp + 0x40]
inc eax
mov eax, eax
mov qword [rsp + 0xc8], rax
mov rdi, qword [rsp + 0x58]
xor eax, eax
mov rcx, qword [rsp + 0xc8]
rep stosb byte [rdi], al
lea r9, [rsp + 0x68]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x1400038cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xa4], eax
lea rdx, str.Error
lea rcx, [0x1400463c0]
call fcn.14000a710
mov ecx, dword [rsp + 0xa4]
mov edx, ecx
mov rcx, rax
call fcn.140003cb0
lea rdx, [0x14000aab0]
mov rcx, rax
call fcn.1400040c0
cmp dword [rsp + 0x68], 0
jne 0x1400038d5
jmp 0x1400038e0
cmp dword [rsp + 0x40], 0
ja 0x14000378d
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x58]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x6c]
mov qword [rsp + 0xd0], rax
mov eax, 2
mov rcx, qword [rsp + 0xd0]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14000d824
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x58]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp qword [rsp + 0x48], 0
je 0x140003991
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rsp + 0x78], 0
je 0x1400039a4
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rsp + 0x80], 0
je 0x1400039bd
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x88]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [rsp + 0x70], eax
movsxd rax, dword [rsp + 0x70]
mov rcx, rax
call fcn.140018648
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x88]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rax, qword [rsp + 0xb8]
add rsp, 0xf0
pop rdi
ret