Function at 0x180087950
Capabilities:
Prepare http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r14
sub rsp, 0x50
mov rbx, rcx
add rcx, 0x48
mov rbp, r9
mov r14, rdx
call fcn.18005b3e0
mov edi, eax
test eax, eax
jns 0x1800879d6
mov dword [rsp + 0x38], eax
mov r9d, 0xb4
lea rax, [0x180027f58]
lea rcx, [0x180002160]
mov qword [rsp + 0x30], rax
lea r8, [0x180027f80]
mov qword [rsp + 0x28], rcx
lea rdx, [0x180027e60]
mov ecx, 1
mov dword [rsp + 0x20], 1
call sym.StorageClientLib.dll_griteLog
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
mov rax, qword [rbx + 0x38]
test rax, rax
je 0x1800879e5
cmp word [rax], 0
jne 0x180087a1e
mov r9, qword [rbx + 0x128]
mov r8, qword [rbx + 0x120]
mov rdx, qword [rbx + 0x118]
mov rcx, rbx
call fcn.180087d70
mov edi, eax
test eax, eax
jns 0x180087a1e
mov dword [rsp + 0x38], eax
mov r9d, 0xb8
lea rax, [0x180027fd0]
jmp 0x180087990
movzx eax, byte [rbx + 8]
mov r8, qword [rbx + 0x28]
mov rdx, qword [rbx + 0x10]
neg al
sbb ecx, ecx
xor r9d, r9d
and ecx, 0x800000
mov dword [rsp + 0x30], ecx
mov rcx, r14
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
lea rdx, [rbx + 0x48]
mov qword [rbx + 0x20], rax
mov rcx, qword [rbx + 0x20]
call fcn.18005de50
mov edi, eax
test eax, eax
jns 0x180087a83
mov dword [rsp + 0x38], eax
mov r9d, 0xc3
lea rax, [0x180028020]
jmp 0x180087990
mov rcx, qword [rbx + 0x20]
lea rdx, [0x180097170]
xor r9d, r9d
or r8d, 0xffffffff
call qword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp rax, 0xffffffffffffffff
jne 0x180087ae2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x180087ab6
movzx ebx, ax
or ebx, 0x80070000
lea rcx, [0x180002040]
lea rax, [0x180002050]
test ebx, ebx
cmovs rax, rcx
mov dword [rsp + 0x40], ebx
mov r9d, 0xca
mov qword [rsp + 0x38], rax
lea rax, [0x180028070]
jmp 0x180087b49
mov rcx, qword [rbx + 0x20]
mov r9d, 8
lea r8, [rsp + 0x80]
lea edx, [r9 + 0x25]
mov qword [rsp + 0x80], rbp
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x180087b81
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x180087b1f
movzx ebx, ax
or ebx, 0x80070000
lea rcx, [0x180002040]
lea rax, [0x180002050]
test ebx, ebx
cmovs rax, rcx
mov dword [rsp + 0x40], ebx
mov r9d, 0xd1
mov qword [rsp + 0x38], rax
lea rax, [0x1800280e0]
mov qword [rsp + 0x30], rax
lea rax, [0x180002090]
lea r8, [0x180027f80]
mov qword [rsp + 0x28], rax
lea rdx, [0x180027e60]
mov ecx, 1
mov dword [rsp + 0x20], 1
call sym.StorageClientLib.dll_griteLog
mov eax, ebx
jmp 0x1800879c3
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rsp + 0x90]
mov qword [rbx + 0xf8], rax
mov dword [rsp + 0x30], 0
call fcn.1800957e0
test al, al
jne 0x1800879c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x180087bc4
movzx ebx, ax
or ebx, 0x80070000
lea rcx, [0x180002040]
lea rax, [0x180002050]
test ebx, ebx
cmovs rax, rcx
mov dword [rsp + 0x40], ebx
mov r9d, 0xe0
mov qword [rsp + 0x38], rax
lea rax, [0x180028120]
jmp 0x180087b49