Function at 0x14003bb90
Capabilities:
Initialize winhttp library
Prepare http request
Print debug messages
Receive http response
Set http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7e8]
sub rsp, 0x8e8
mov rax, qword [0x14012a210]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
mov r14, r9
mov qword [rsp + 0x48], r8
mov r15, rdx
mov rbx, rcx
mov rax, qword [rbp + 0x850]
mov qword [rbp - 0x80], rax
mov rsi, qword [rbp + 0x858]
xor edi, edi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], di
xor r8d, r8d
lea rdx, [0x1400ff490]
lea rcx, [rbp - 0x78]
call fcn.140011160
nop
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], di
xor r8d, r8d
lea rdx, [0x1400ff490]
lea rcx, [rbp - 0x58]
call fcn.140011160
nop
mov word [rsp + 0x78], di
mov byte [rsp + 0x40], dil
lea rdx, [rbx + 0x130]
lea rcx, [rsp + 0x58]
call fcn.140012240
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x58]
lea r8, [rbp - 0x78]
mov rdx, rax
call fcn.14003d180
mov eax, 0x50
movzx r12d, word [rsp + 0x78]
test r12w, r12w
cmove r12w, ax
movzx eax, byte [rsp + 0x40]
neg al
sbb r13d, r13d
and r13d, 0x800000
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x30]
call fcn.1400a83f0
mov dword [rsp + 0x7c], 0xa80
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8, qword [rbx + 0x198]
mov edx, dword [rbx + 0x190]
lea rcx, str.MTFileDownloader
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [r14], rax
test rax, rax
je 0x14003bf63
lea r9d, [rdi + 4]
lea r8, [rsp + 0x7c]
lea edx, [rdi + 0x54]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x14003bd04
lea rcx, str._CMTFileDownloader::GetServerResponse_____WinHttpSetOption_failed.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14003bf63
mov dword [rsp + 0x78], 2
mov r9d, 4
lea r8, [rsp + 0x78]
lea edx, [r9 + 0x54]
mov rcx, qword [r14]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x14003bd4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.________CMTFileDownloader::GetServerResponse_____Failed_at_WinHttpSetOption__error:__d
lea rcx, [rbp - 0x30]
call fcn.1400391d0
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rdx, qword [rbp - 0x78]
xor r9d, r9d
movzx r8d, r12w
mov rcx, qword [r14]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rcx, qword [rbp - 0x80]
mov qword [rcx], rax
test rax, rax
je 0x14003bf63
lea r8, [rbx + 0x98]
cmp qword [r8 + 0x18], 8
jb 0x14003bd8a
mov r8, qword [r8]
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsi], rax
test rax, rax
je 0x14003bf63
cmp dword [rbx + 0x220], 0
je 0x14003be05
mov dword [rbp - 0x80], 0x100
mov r9d, 4
lea r8, [rbp - 0x80]
lea edx, [r9 + 0x1b]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x14003be05
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str._CMTFileDownloader::GetServerResponse_____failed_at_WinHttpSetOption__error:_d
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp qword [rbx + 0x1b8], 0
jne 0x14003be19
cmp qword [rbx + 0x1d8], 0
je 0x14003be70
lea rax, [rbx + 0x1c8]
cmp qword [rax + 0x18], 8
jb 0x14003be2a
mov rax, qword [rax]
lea r9, [rbx + 0x1a8]
cmp qword [r9 + 0x18], 8
jb 0x14003be3b
mov r9, qword [r9]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
mov r8d, dword [rbx + 0x1a0]
mov edx, 1
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
jne 0x14003be70
lea rcx, str.________CMTFileDownloader::GetServerResponse_____WinHttpSetCredentials___failed
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14003bf63
cmp qword [rbx + 0x20], 0
jne 0x14003be7e
cmp qword [rbx + 0x40], 0
je 0x14003bec9
lea rax, [rbx + 0x30]
cmp qword [rax + 0x18], 8
jb 0x14003be8c
mov rax, qword [rax]
lea r9, [rbx + 0x10]
cmp qword [r9 + 0x18], 8
jb 0x14003be9a
mov r9, qword [r9]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
jne 0x14003bec9
lea rcx, str.________CMTFileDownloader::GetServerResponse:_WinHttpSetCredentials_failed
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14003bf63
test r15, r15
je 0x14003bf0f
mov r9d, 0x20000000
mov r8d, 0xffffffff
mov rdx, r15
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x14003bf0f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.________CMTFileDownloader::GetServerResponse_____Failed_at_WinHttpAddRequestHeaders__error:__d
mov r8d, eax
lea rcx, [rbp - 0x30]
call fcn.1400391d0
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14003bf63
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x14003bf40
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.________CMTFileDownloader::GetServerResponse_____Failed_at_WinHttpSendRequest__error:__d
jmp 0x14003bef7
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x14003bf5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.________CMTFileDownloader::GetServerResponse_____Failed_at_WinHttpReceiveResponse__error:__d
jmp 0x14003bef7
mov edi, 1
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x14003bfa0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003bf9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003c007
call fcn.1400a59a4
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x14003bfdc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003bfd7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003c001
call fcn.1400a59a4
mov eax, edi
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.1400a5460
add rsp, 0x8e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400b4704
nop
call fcn.1400b4704
nop
int3