Function at 0x1800905d0
Capabilities:
Prepare http request

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x2b8], rbx
mov rax, qword [0x1800b0070]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r15, r8
mov rdi, rdx
mov r13, rcx
xor ebx, ebx
mov r12d, ebx
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rbx
mov word [rbp - 0x78], bx
mov qword [rbp + 0x90], 7
mov qword [rbp + 0x88], rbx
mov word [rbp + 0x78], bx
mov r14d, ebx
mov qword [rbp - 0x10], 0xf
mov qword [rbp - 0x18], rbx
mov byte [rbp - 0x28], r14b
xor r8d, r8d
lea rdx, [0x18000f8f8]
lea rcx, [rbp - 0x30]
call fcn.18003e2b0
nop
mov esi, ebx
mov qword [rbp - 0x38], 0xf
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x50], sil
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], rbx
mov word [rbp], bx
mov qword [rbp + 0x40], 7
mov qword [rbp + 0x38], rbx
mov word [rbp + 0x28], bx
mov qword [rsp + 0x60], rbx
test rdi, rdi
jne 0x1800906bb
mov ebx, 0x80070057
lea rax, [0x180029568]
mov r9d, 0xb0
jmp 0x180090eb4
lea r8, [0x18002b860]
lea rdx, [0x18002b2e0]
mov ecx, 1
test r15, r15
jne 0x1800906ea
mov ebx, 0x80070057
lea rax, [0x18002b8b8]
mov r9d, 0xb1
jmp 0x180090ec7
mov qword [rsp + 0x40], rdi
mov rax, qword [r13 + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [r13 + 0x20]
mov qword [rsp + 0x30], rax
lea rax, [0x18002b8d0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
mov r9d, 0xb3
call sym.StorageClientLib.dll_griteLog
lea rdx, [0x1800b1510]
mov ecx, 0x2000
call fcn.18003b8e8
mov rsi, rax
test rax, rax
jne 0x18009074b
lea rax, [0x18002b9d4]
mov r9d, 0xb8
jmp 0x180090eaf
mov r8d, 8
lea rdx, [0x1800015b8]
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
sete bl
lea rcx, [0x18002aef0]
call fcn.18005bc80
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x18009078f
lea rax, [0x18002b9e0]
mov r9d, 0xbd
jmp 0x180090eaf
lea rdx, [0x1800b1510]
mov ecx, 0x148
call fcn.18003b938
mov qword [rsp + 0x70], rax
test rax, rax
je 0x1800907c5
mov byte [rsp + 0x20], bl
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call fcn.180088ff0
mov rcx, rax
xor edx, edx
jmp 0x1800907c9
xor edx, edx
mov ecx, edx
test rcx, rcx
je 0x180090ea2
mov rax, qword [rcx]
movsxd rax, dword [rax + 4]
add rax, rcx
mov qword [rsp + 0x70], rax
je 0x180090ea2
mov qword [rsp + 0x60], rdx
neg bl
sbb eax, eax
and eax, 0x800000
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rdx
xor r9d, r9d
lea r8, [0x18002b9e8]
lea rdx, [0x180001680]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r12, rax
test rax, rax
jne 0x180090879
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x30], eax
lea rax, [0x18002ba00]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 0xcd
lea r8, [0x18002b860]
lea rdx, [0x18002b2e0]
lea ecx, [r12 + 1]
call sym.StorageClientLib.dll_griteLog
test ebx, ebx
jle 0x180090ee9
movzx ebx, bx
or ebx, 0x80070000
jmp 0x180090ee9
mov r8d, 0xf7
lea rdx, [0x18002af30]
lea rcx, [rbp - 0x80]
call fcn.180045020
mov r8d, 9
lea rdx, [0x18002ba58]
lea rcx, [rbp - 0x80]
call fcn.180045020
mov r8d, 9
lea rdx, [0x18002ba70]
lea rcx, [rbp - 0x80]
call fcn.180045020
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x58], rax
xor r15d, r15d
mov dword [rsp + 0x50], r15d
lea r9, [rsp + 0x50]
lea r8, [rbp + 0x110]
lea rcx, [rsp + 0x58]
call fcn.1800601d0
lea rax, [rbp + 0x110]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], r15w
jne 0x180090910
lea rdx, [rbp + 0x110]
lea rcx, [rbp - 0x80]
call fcn.180045020
mov r8d, 0xa
lea rdx, [0x18002ba88]
lea rcx, [rbp - 0x80]
call fcn.180045020
mov r8d, 0x19
lea rdx, [0x18002baa0]
lea rcx, [rbp - 0x80]
call fcn.180045020
mov r8d, 6
lea rdx, [0x18002bad8]
lea rcx, [rbp - 0x80]
call fcn.180045020
mov r8d, 0x20
lea rdx, [0x18002baf0]
lea rcx, [rbp - 0x80]
call fcn.180045020
mov r8d, 0xe
lea rdx, [0x180001320]
lea rcx, [rbp - 0x80]
call fcn.180045020
mov r8d, 0xd
lea rdx, [0x18002bb38]
lea rcx, [rbp - 0x80]
call fcn.180045020
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], r15w
jne 0x1800909b2
lea r8, [rbp + 0x70]
mov rcx, rdi
call fcn.18005dc80
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.180044ef0
mov r8d, 0xe
lea rdx, [0x18002bb58]
lea rcx, [rbp - 0x80]
call fcn.180045020
mov r8d, 0x21
lea rdx, [0x18002bb80]
lea rcx, [rbp - 0x80]
call fcn.180045020
lea r8, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae r8, qword [rbp - 0x78]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
or r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x180090a8e
mov ebx, 0x80050016
lea rax, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rax, qword [rbp - 0x78]
mov qword [rsp + 0x30], rax
lea rax, [0x18002bbd0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 0xef
lea r8, [0x18002b860]
lea rdx, [0x18002b2e0]
mov ecx, 1
call sym.StorageClientLib.dll_griteLog
jmp 0x180090eec
lea ebx, [rax + 1]
movsxd rcx, ebx
lea rdx, [0x1800b1510]
call fcn.18003b8e8
mov r14, rax
test rax, rax
jne 0x180090ab2
mov ebx, 0x8007000e
jmp 0x180090eec
lea r8, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae r8, qword [rbp - 0x78]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x180090b3e
mov ebx, 0x80050016
lea rax, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rax, qword [rbp - 0x78]
mov qword [rsp + 0x38], rax
mov eax, dword [rbp - 0x68]
mov dword [rsp + 0x30], eax
lea rax, [0x18002bc50]
mov r9d, 0x104
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
lea r8, [0x18002b860]
lea rdx, [0x18002b2e0]
mov ecx, 1
call sym.StorageClientLib.dll_griteLog
jmp 0x180090eec
mov r8d, 0x8a
lea rdx, [0x180001a40]
lea rcx, [rbp - 0x30]
call fcn.1800481f0
mov r8d, 0x7e
lea rdx, [0x180001ad0]
lea rcx, [rbp - 0x58]
call fcn.1800481f0
mov r8d, 2
lea rdx, [0x18002bca8]
lea rcx, [rbp - 0x58]
call fcn.1800481f0
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov r9, qword [r13 + 0x30]
mov r8, qword [r13 + 0x20]
lea rdx, [0x18002aef0]
call fcn.1800911f0
mov ebx, eax
test eax, eax
jns 0x180090bc5
mov dword [rsp + 0x38], eax
lea rax, [0x18002bcb0]
mov qword [rsp + 0x30], rax
lea rax, [0x180002160]
mov r9d, 0x10f
jmp 0x180090b14
lea rax, [rbp + 0x28]
cmp qword [rbp + 0x40], 8
cmovae rax, qword [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x68]
mov rdx, rsi
call fcn.180093d50
test eax, eax
jns 0x180090c24
lea rax, [0x18002bd00]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 0x118
lea r8, [0x18002b860]
lea rdx, [0x18002b2e0]
mov ecx, 1
call sym.StorageClientLib.dll_griteLog
mov ebx, 0x80050017
jmp 0x180090eec
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rsi + r8], r15b
jne 0x180090c30
mov rdx, rsi
lea rcx, [rbp - 0x58]
call fcn.1800481f0
mov r8d, 2
lea rdx, [0x18002bca8]
lea rcx, [rbp - 0x58]
call fcn.1800481f0
or r8, 0xffffffffffffffff
nop
inc r8
cmp byte [r14 + r8], r15b
jne 0x180090c60
mov rdx, r14
lea rcx, [rbp - 0x58]
call fcn.1800481f0
mov r8d, 2
lea rdx, [0x18002bca8]
lea rcx, [rbp - 0x58]
call fcn.1800481f0
mov r8d, gethostname
lea rdx, [0x180001b50]
lea rcx, [rbp - 0x58]
call fcn.1800481f0
mov r8d, 0x30
lea rdx, [0x180001b88]
lea rcx, [rbp - 0x58]
call fcn.1800481f0
mov r9d, 0xa
lea r8d, [r9 + 0x16]
lea rdx, [rbp + 0xe8]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.msvcrt.dll__ui64toa_s]
test eax, eax
je 0x180090ce0
mov ebx, 0x80050010
jmp 0x180090eec
mov qword [rbp + 0x68], 0xf
mov qword [rbp + 0x60], r15
mov byte [rbp + 0x50], r15b
mov r8d, 0x10
lea rdx, [0x18002bd60]
lea rcx, [rbp + 0x48]
call fcn.18003e2b0
nop
lea r8, [rbp + 0xe8]
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0xc0]
call fcn.180094590
nop
lea r8, [0x18002bd54]
mov rdx, rax
lea rcx, [rbp + 0x98]
call fcn.180094590
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.180049170
nop
cmp qword [rbp + 0xb8], 0x10
jb 0x180090d60
mov rcx, qword [rbp + 0xa0]
call sub.msvcrt.dll_free
mov qword [rbp + 0xb8], 0xf
mov qword [rbp + 0xb0], r15
mov byte [rbp + 0xa0], 0
cmp qword [rbp + 0xe0], 0x10
jb 0x180090d8f
mov rcx, qword [rbp + 0xc8]
call sub.msvcrt.dll_free
mov qword [rbp + 0xe0], 0xf
mov qword [rbp + 0xd8], r15
mov byte [rbp + 0xc8], 0
cmp qword [rbp + 0x68], 0x10
jb 0x180090db8
mov rcx, qword [rbp + 0x50]
call sub.msvcrt.dll_free
mov qword [rbp + 0x68], 0xf
mov qword [rbp + 0x60], r15
mov byte [rbp + 0x50], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x30]
call fcn.180049170
mov dword [rsp + 0x50], r15d
lea r9, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae r9, qword [rbp - 0x28]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r8, qword [rsp + 0x70]
mov rdx, r12
mov rcx, r13
call fcn.180093f20
mov ebx, eax
test eax, eax
js 0x180090e39
cmp dword [rsp + 0x58], 0x190
jb 0x180090eec
mov qword [rsp + 0x30], rdi
lea r8, [0x18002b860]
lea rdx, [0x18002b2e0]
mov ecx, 1
cmp eax, 0x8005001d
jne 0x180090e7c
lea rax, [0x18002bd80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
mov r9d, 0x133
call sym.StorageClientLib.dll_griteLog
mov ebx, r15d
jmp 0x180090eec
lea rax, [0x18002bde0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 0x13b
call sym.StorageClientLib.dll_griteLog
mov ebx, 0x80050002
jmp 0x180090eec
lea rax, [0x18000a698]
mov r9d, 0xc0
mov ebx, 0x8007000e
lea r8, [0x18002b860]
lea rdx, [0x18002b2e0]
mov ecx, 1
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rax
lea rax, [0x180001ef0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
call sym.StorageClientLib.dll_griteLog
xor r15d, r15d
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_free
test r12, r12
je 0x180090f04
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call sub.msvcrt.dll_free
mov rcx, rsi
call sub.msvcrt.dll_free
test ebx, ebx
jns 0x180090f65
cmp qword [rbp + 0x10], 0
je 0x180090f65
lea rax, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rax, qword [rbp]
mov qword [rsp + 0x30], rax
lea rax, [0x18002be40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 0x14f
lea r8, [0x18002b860]
lea rdx, [0x18002b2e0]
mov ecx, 1
call sym.StorageClientLib.dll_griteLog
nop
cmp qword [rbp + 0x40], 8
jb 0x180090f75
mov rcx, qword [rbp + 0x28]
call sub.msvcrt.dll_free
mov qword [rbp + 0x40], 7
mov qword [rbp + 0x38], r15
mov word [rbp + 0x28], r15w
cmp qword [rbp + 0x18], 8
jb 0x180090f96
mov rcx, qword [rbp]
call sub.msvcrt.dll_free
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], r15
mov word [rbp], r15w
cmp qword [rbp - 0x38], 0x10
jb 0x180090fb7
mov rcx, qword [rbp - 0x50]
call sub.msvcrt.dll_free
mov qword [rbp - 0x38], 0xf
mov qword [rbp - 0x40], r15
mov byte [rbp - 0x50], 0
cmp qword [rbp - 0x10], 0x10
jb 0x180090fd7
mov rcx, qword [rbp - 0x28]
call sub.msvcrt.dll_free
mov qword [rbp - 0x10], 0xf
mov qword [rbp - 0x18], r15
mov byte [rbp - 0x28], 0
cmp qword [rbp + 0x90], 8
jb 0x180090ffa
mov rcx, qword [rbp + 0x78]
call sub.msvcrt.dll_free
mov qword [rbp + 0x90], 7
mov qword [rbp + 0x88], r15
mov word [rbp + 0x78], r15w
cmp qword [rbp - 0x60], 8
jb 0x180091021
mov rcx, qword [rbp - 0x78]
call sub.msvcrt.dll_free
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], r15
mov word [rbp - 0x78], r15w
mov eax, ebx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.18003b8c0
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret