Function at 0x1400e15bc
Capabilities:
Prepare http request
Receive http response
Set http header

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x208
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x180], 0xfffffffffffffffe
mov rdi, r9
mov r12, r8
mov r14, rdx
mov r13, rcx
xorps xmm0, xmm0
lea rsi, [rbp - 0x40]
movaps xmmword [rsi], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x50], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x40], xmm0
mov qword [rsi + 0x60], 0
mov dword [rsi], 0x68
mov eax, 0xffffffff
mov dword [rsi + 0x10], eax
mov dword [rsi + 0x20], eax
mov dword [rsi + 0x50], eax
mov dword [rsi + 0x60], eax
mov rcx, r9
call fcn.14004ac6c
mov rbx, rax
mov rcx, rdi
call fcn.140049776
mov rcx, rax
mov edx, ebx
xor r8d, r8d
mov r9, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x1400e1b34
lea rsi, [rbp + 0x120]
mov rcx, rsi
call fcn.14000e25a
mov rdx, qword [rbp - 0x28]
mov eax, dword [rbp - 0x20]
lea r8, [rdx + rax*2]
lea rdi, [rbp + 0xf0]
mov rcx, rdi
mov r9, rsi
call fcn.1400a9b54
movzx esi, word [rbp - 0x1c]
mov rcx, rdi
call fcn.1400812ec
mov rcx, rax
call fcn.14003c316
mov rcx, qword [r13 + 0x40]
mov rdx, rax
mov r8d, esi
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
test rax, rax
je 0x1400e1b99
mov r15, rax
mov esi, dword [rbp - 0x2c]
mov rdi, qword [rbp + 8]
lea rdx, [rbp + 0x120]
mov rcx, r12
call fcn.140049682
xor ebx, ebx
cmp esi, 2
sete bl
shl ebx, 0x17
or ebx, 0x40
lea rsi, [rbp + 0x120]
mov rcx, rsi
call fcn.1400812ec
mov rcx, rax
call fcn.14003c316
mov dword [rsp + 0x30], ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov rcx, r15
mov rdx, rax
mov r8, rdi
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
mov rcx, rsi
call fcn.140003d86
mov qword [rbp + 0x160], rdi
test rdi, rdi
je 0x1400e1bfe
mov rcx, r13
call fcn.14004b36c
test al, al
jne 0x1400e178a
lea rdx, [rbp + 0x120]
mov rcx, r13
call fcn.140049682
lea rsi, [rbp + 0x120]
mov rcx, rsi
call fcn.1400812ec
mov rcx, rax
call fcn.14003c316
mov rcx, qword [rbp + 0x160]
mov rdx, rax
mov r8d, 0xffffffff
mov r9d, 0x1000000
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov edi, eax
mov rcx, rsi
call fcn.140003d86
test edi, edi
je 0x1400e1e48
lea rdx, [0x14014cf88]
lea rcx, [rbp + 0x120]
call fcn.14004788a
mov qword [rbp + 0x118], r15
mov qword [rbp + 0x110], r14
lea rcx, [rbp + 0x120]
call fcn.140049776
mov rbx, qword [rbp + 0x1f0]
mov rcx, qword [rbp + 0x160]
mov rdx, rax
mov r8d, 0xffffffff
mov r9d, 0x1000000
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov esi, eax
mov eax, dword [0x14018b6f8]
mov ecx, dword [0x14018b6f4]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete byte [rbp + 0x178]
cmp ecx, 0xa
setl byte [rbp + 0x168]
mov eax, 0xa85d4b32
lea r12, [rbp + 0x140]
mov r14d, 0xe6b9caca
lea r15, [rbp + 0x120]
mov edi, 0x1a0ece2c
cmp eax, 0x1a0ece2b
jg 0x1400e1868
cmp eax, 0xa85d4b32
je 0x1400e188d
cmp eax, 0xe6b9caca
jne 0x1400e1820
mov rcx, r12
call fcn.140003d86
mov rcx, r15
call fcn.140003dce
mov eax, dword [0x14018b6f8]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov eax, 0x54ab454d
cmove eax, edi
cmp dword [0x14018b6f4], 0xa
cmovl eax, edi
jmp 0x1400e1820
cmp eax, 0x1a0ece2c
je 0x1400e18ae
cmp eax, 0x54ab454d
jne 0x1400e1820
mov rcx, r12
call fcn.140003d86
mov rcx, r15
call fcn.140003dce
mov eax, 0xe6b9caca
jmp 0x1400e1820
mov cl, byte [rbp + 0x178]
cmp byte [rbp + 0x168], 0
mov eax, 0x54ab454d
cmovne eax, r14d
test cl, cl
cmovne eax, r14d
jmp 0x1400e1820
test esi, esi
je 0x1400e1c6c
lea r8, [rbp + 0x178]
mov dword [r8], 0x3300
mov rsi, qword [rbp + 0x160]
mov rcx, rsi
mov edx, 0x1f
mov r9d, 4
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x1400e1cef
lea r8, [rbp + 0x178]
mov dword [r8], 2
mov rcx, rsi
mov edx, 0x58
mov r9d, 4
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x1400e1d5a
mov r12, qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov r14d, 0xed911ce2
mov r15d, 0xfd8d3819
mov rcx, rbx
call fcn.140001c0c
mov rsi, qword [rax]
mov rcx, rbx
call fcn.140043b1e
cmp rsi, qword [rax]
je 0x1400e19d6
mov rcx, rbx
call fcn.140001c0c
mov rsi, qword [rax]
mov eax, dword [0x14018b5c0]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
sete byte [rbp + 0x168]
mov ecx, dword [0x14018b5bc]
mov eax, 0x1794b96
cmove eax, r14d
cmp ecx, 0xa
setl byte [rbp + 0x120]
cmovl eax, r14d
mov ecx, 0xd4d2c9b7
cmp ecx, 0xfd8d3818
jg 0x1400e199d
cmp ecx, 0xd4d2c9b7
je 0x1400e19b4
cmp ecx, 0xed911ce2
jne 0x1400e1983
jmp 0x1400e19d8
cmp ecx, 0xfd8d3819
je 0x1400e19d2
cmp ecx, 0x1794b96
jne 0x1400e1983
mov ecx, 0xfd8d3819
jmp 0x1400e1983
mov dl, byte [rbp + 0x168]
cmp byte [rbp + 0x120], 0
mov ecx, 0x1794b96
cmovne ecx, r15d
test dl, dl
cmovne ecx, r15d
jmp 0x1400e1983
mov ecx, eax
jmp 0x1400e1983
xor esi, esi
mov rcx, rbx
call fcn.140001c0c
mov rdi, qword [rax]
mov rcx, rbx
call fcn.140043b1e
cmp rdi, qword [rax]
je 0x1400e1a08
mov rcx, rbx
call fcn.140043b1e
mov r13, qword [rax]
mov rcx, rbx
call fcn.140001c0c
sub r13, qword [rax]
jmp 0x1400e1a0b
xor r13d, r13d
mov rdi, qword [rbp + 0x160]
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
mov qword [rsp + 0x30], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
mov r9, rsi
call r12
test eax, eax
jne 0x1400e1acc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
je 0x1400e1924
mov esi, eax
mov rcx, qword [rbp + 0x160]
mov rdi, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rdi
mov rcx, qword [rbp + 0x118]
call rdi
lea rdx, [0x14014d09c]
lea rcx, [rbp + 0x120]
mov r8d, esi
call fcn.14004788a
lea rcx, [rbp + 0x120]
call fcn.1400496a0
lea rcx, vtable.std::exception.0
lea rdx, [rbp + 0xc8]
mov qword [rdx - 8], rcx
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
lea rcx, [rbp + 0x168]
mov qword [rcx], rax
mov byte [rcx + 8], 1
call fcn.14012bf08
lea rdx, [0x140166b18]
lea rcx, [rbp + 0xc0]
call fcn.14012b400
jmp 0x1400e1ebf
mov rcx, rdi
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1400e1dc5
lea rdx, [rbp + 0x160]
mov rdi, qword [rbp + 0x110]
mov rcx, rdi
call fcn.1400e51d8
mov rbx, qword [rbp + 0x118]
mov rcx, qword [rbp + 0x160]
mov rsi, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rsi
mov rcx, rbx
call rsi
lea rcx, [rbp + 0xf0]
call fcn.140003d86
mov rax, rdi
add rsp, 0x208
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x14014d1e6]
lea rsi, [rbp + 0x120]
mov rcx, rsi
mov r8d, eax
call fcn.14004788a
mov rcx, rsi
call fcn.1400496a0
lea rcx, vtable.std::exception.0
lea rdx, [rbp + 0xf8]
mov qword [rdx - 8], rcx
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
lea rcx, [rbp + 0x168]
mov qword [rcx], rax
mov byte [rcx + 8], 1
call fcn.14012bf08
lea rdx, [0x140166b18]
lea rcx, [rbp + 0xf0]
call fcn.14012b400
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x14014ce7a]
lea rcx, [rbp + 0x120]
mov r8d, eax
call fcn.14004788a
lea rcx, [rbp + 0x120]
call fcn.1400496a0
lea rcx, vtable.std::exception.0
lea rdx, [rbp + 0x38]
mov qword [rdx - 8], rcx
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
lea rcx, [rbp + 0x168]
mov qword [rcx], rax
mov byte [rcx + 8], 1
call fcn.14012bf08
lea rdx, [0x140166b18]
lea rcx, [rbp + 0x30]
call fcn.14012b400
jmp 0x1400e1ebf
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x14014ced2]
lea rcx, [rbp + 0x120]
mov r8d, eax
call fcn.14004788a
lea rcx, [rbp + 0x120]
call fcn.1400496a0
lea rcx, vtable.std::exception.0
lea rdx, [rbp + 0x50]
mov qword [rdx - 8], rcx
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
lea rcx, [rbp + 0x168]
mov qword [rcx], rax
mov byte [rcx + 8], 1
call fcn.14012bf08
lea rdx, [0x140166b18]
lea rcx, [rbp + 0x48]
call fcn.14012b400
jmp 0x1400e1ebf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [rbp + 0x160]
mov rdi, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rdi
mov rcx, qword [rbp + 0x118]
call rdi
lea rdx, [0x14014cf34]
lea rcx, [rbp + 0x120]
mov r8d, esi
call fcn.14004788a
lea rcx, [rbp + 0x120]
call fcn.1400496a0
lea rcx, vtable.std::exception.0
lea rdx, [rbp + 0x80]
mov qword [rdx - 8], rcx
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
lea rcx, [rbp + 0x168]
mov qword [rcx], rax
mov byte [rcx + 8], 1
call fcn.14012bf08
lea rdx, [0x140166b18]
lea rcx, [rbp + 0x78]
call fcn.14012b400
jmp 0x1400e1ebf
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x14014cfce]
lea rcx, [rbp + 0x120]
mov r8d, eax
call fcn.14004788a
lea rcx, [rbp + 0x120]
call fcn.1400496a0
lea rcx, vtable.std::exception.0
lea rdx, [rbp + 0x98]
mov qword [rdx - 8], rcx
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
lea rcx, [rbp + 0x168]
mov qword [rcx], rax
mov byte [rcx + 8], 1
call fcn.14012bf08
lea rdx, [0x140166b18]
lea rcx, [rbp + 0x90]
call fcn.14012b400
jmp 0x1400e1ebf
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x14014d032]
lea rcx, [rbp + 0x120]
mov r8d, eax
call fcn.14004788a
lea rcx, [rbp + 0x120]
call fcn.1400496a0
lea rcx, vtable.std::exception.0
lea rdx, [rbp + 0xb0]
mov qword [rdx - 8], rcx
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
lea rcx, [rbp + 0x168]
mov qword [rcx], rax
mov byte [rcx + 8], 1
call fcn.14012bf08
lea rdx, [0x140166b18]
lea rcx, [rbp + 0xa8]
call fcn.14012b400
jmp 0x1400e1ebf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [rbp + 0x160]
mov rdi, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rdi
mov rcx, qword [rbp + 0x118]
call rdi
lea rdx, [0x14014d0f4]
lea rcx, [rbp + 0x120]
mov r8d, esi
call fcn.14004788a
lea rcx, [rbp + 0x120]
call fcn.1400496a0
lea rcx, vtable.std::exception.0
lea rdx, [rbp + 0xe0]
mov qword [rdx - 8], rcx
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
lea rcx, [rbp + 0x168]
mov qword [rcx], rax
mov byte [rcx + 8], 1
call fcn.14012bf08
lea rdx, [0x140166b18]
lea rcx, [rbp + 0xd8]
call fcn.14012b400
jmp 0x1400e1ebf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [rbp + 0x160]
mov rdi, qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call rdi
mov rcx, r15
call rdi
lea rdx, [0x14014cf34]
lea rcx, [rbp + 0x120]
mov r8d, esi
call fcn.14004788a
lea rcx, [rbp + 0x120]
call fcn.1400496a0
lea rcx, vtable.std::exception.0
lea rdx, [rbp + 0x68]
mov qword [rdx - 8], rcx
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
lea rcx, [rbp + 0x168]
mov qword [rcx], rax
mov byte [rcx + 8], 1
call fcn.14012bf08
lea rdx, [0x140166b18]
lea rcx, [rbp + 0x60]
call fcn.14012b400
int3