Function at 0x4045e0
Capabilities:
Receive http response

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x004fb010]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov byte [rsp + 0x40], r9b
mov r14, r8
mov r15, rdx
mov rsi, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x70], rdx
mov r13, qword [rsp + 0x100]
mov dword [rsp + 0x44], 0
lea rdi, [rcx + 0xc0]
mov qword [rsp + 0x90], rdi
test rdi, rdi
je 0x404651
cmp dword [rdi + 0x28], 0
je 0x404651
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop
xor edx, edx
mov r8d, 0xf8
mov rcx, r15
call fcn.004a2370
mov rcx, r15
call fcn.004096b0
mov dword [rsp + 0x44], 1
xor ebx, ebx
mov qword [rsp + 0x88], rbx
xor eax, eax
mov r12d, 0x4000
mov dword [rsp + 0x80], eax
mov dword [rsp + 0x84], eax
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x4046a6
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov qword [rsi + 0x38], rax
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x4046bb
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x4046d0
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x60], SafeArrayLock
mov byte [rsi + 0xa8], 0
mov rcx, r15
call fcn.0040a450
mov qword [rsp + 0x30], r13
mov r9, r15
mov rdx, r14
mov rcx, rsi
call fcn.00404910
test al, al
je 0x4048a4
lea rdx, [r15 + 8]
mov rcx, rsi
call fcn.00404d90
test al, al
je 0x40476a
mov rcx, r15
call fcn.00409a30
lea rcx, [r15 + 0x80]
cmp qword [r15 + 0x98], 8
jb 0x404732
mov rcx, qword [r15 + 0x80]
cmp qword [r15 + 0x90], 3
jne 0x4048d6
mov r8d, 3
lea rdx, [0x004ba878]
nop dword [rax]
movzx eax, word [rdx]
cmp word [rcx], ax
jne 0x4048d6
add rcx, 2
add rdx, 2
sub r8, 1
jne 0x404750
cmp byte [rsp + 0x40], 0
jne 0x4047c0
mov rcx, r12
call fcn.00479588
mov rbx, rax
mov qword [rsp + 0x88], rax
mov r8, r12
xor edx, edx
mov rcx, rax
call fcn.004a2370
lea rdx, [rsp + 0x80]
mov rcx, qword [rsi + 0x38]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4048bd
mov r8d, dword [rsp + 0x80]
test r8d, r8d
jne 0x4047c5
mov byte [r15], 1
mov dword [rsi + 0x60], r8d
jmp 0x40485c
cmp r8d, r12d
jbe 0x40480a
mov rcx, r8
call fcn.00479588
mov r14, rax
mov rcx, rbx
mov rbx, rax
mov qword [rsp + 0x88], rax
test rcx, rcx
je 0x4047ed
call fcn.00479330
mov r12d, dword [rsp + 0x80]
mov r8d, r12d
xor edx, edx
mov rcx, r14
call fcn.004a2370
mov r8d, dword [rsp + 0x80]
lea r9, [rsp + 0x84]
mov rdx, rbx
mov rcx, qword [rsi + 0x38]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4048ef
lea rcx, [r15 + 0x20]
mov r9d, dword [rsp + 0x84]
add r9, rbx
mov r8, rbx
mov rdx, qword [rcx + 8]
call fcn.00405930
jmp 0x404791
test rbx, rbx
je 0x40486a
mov rcx, rbx
call fcn.00479330
nop
test rdi, rdi
je 0x40487e
cmp dword [rdi + 0x28], 0
je 0x40487e
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rax, r15
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.00479310
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov dword [rsp + 0x48], 2
lea rdx, [0x004e7610]
lea rcx, [rsp + 0x48]
call fcn.004a2510
mov dword [rsp + 0x50], 9
lea rdx, [0x004e7610]
lea rcx, [rsp + 0x50]
call fcn.004a2510
mov dword [rsp + 0x4c], 6
lea rdx, [0x004e7610]
lea rcx, [rsp + 0x4c]
call fcn.004a2510
mov dword [rsp + 0x54], 9
lea rdx, [0x004e7610]
lea rcx, [rsp + 0x54]
call fcn.004a2510
int3