Function at 0x140004a00
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 - 0x10]
sub rsp, 0x110
mov rax, qword [0x1400c4040]
xor rax, rsp
mov qword [rbp], rax
mov r12, r9
mov r13, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x78], rdx
mov r14, qword [rbp + 0x70]
xor r15d, r15d
lea rcx, [rsp + 0x60]
call fcn.140003a30
mov rbx, rax
call fcn.1400831b8
lea rcx, str.dropship
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 8
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.140001e30
nop
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.1400020c0
mov rbx, rax
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x140004acf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004aca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004aca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400844f0
movdqa xmm0, xmmword [0x1400b4950]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r15w
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.140002410
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x140004b33
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004b2e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004b2e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400844f0
movdqa xmm0, xmmword [0x1400b4950]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r15w
mov r8d, 3
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x40]
call fcn.140003950
movsd xmm0, qword [rax]
movsd qword [rsp + 0x30], xmm0
mov edx, dword [rax + 8]
mov ecx, dword [rsp + 0x30]
test edx, edx
je 0x140004b7e
lea eax, [rcx - 1]
test eax, 0xfffffff7
jne 0x14000502a
lea rbx, str.Pg_n_
cmp ecx, 3
jne 0x140004bcf
mov r8d, ecx
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x40]
call fcn.140003950
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 0x140004bca
test ecx, ecx
jne 0x140005000
jmp 0x140004bcf
cmp eax, 1
jne 0x140004bf1
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rcx, qword [rbp - 0x70]
call fcn.1400836bc
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x14000503b
mov r15, qword [rdi + 0x10]
mov rbx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140004c02
mov rbx, qword [rdi]
call fcn.1400831b8
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], r15
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140001e30
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.1400020c0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140004c74
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004c6f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004c6f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400844f0
mov r8d, 3
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x40]
call fcn.140003950
movsd xmm0, qword [rax]
movsd qword [rsp + 0x30], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp - 0x50], ecx
lea rax, str.Pg_n_
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x140004cbe
test ecx, ecx
jne 0x140005015
jmp 0x140004ce5
cmp eax, 1
je 0x140004ce5
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rcx, qword [rbp - 0x70]
call fcn.140083db8
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x140004feb
lea rax, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rax, qword [rbp - 0x70]
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x60]
mov qword [rbp - 0x48], rax
call fcn.1400831b8
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rbp - 0x30]
call fcn.14000b0b0
nop
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rcx, qword [rbp - 0x30]
call qword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rdx, qword [rbp - 0x30]
lea rcx, str.downloading:__s_n
call fcn.1400014a0
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
lea rax, vtable._downloading.0
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], r13
lea r8, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova r8, qword [rbp - 0x30]
mov rdx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140004d7c
mov rdx, qword [rsi]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
je 0x140004da5
lea rcx, str.download_failed_n
call fcn.1400014a0
jmp 0x140004e76
lea rcx, str.download_worked_n
call fcn.1400014a0
test r12, r12
je 0x140004e19
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rdx, qword [rbp - 0x30]
lea rcx, [rsp + 0x60]
call fcn.140004690
mov rdx, rax
mov rcx, r12
call fcn.140007850
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140004e19
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004e14
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004e14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400844f0
test r14, r14
je 0x140004e76
lea rax, [rbp - 0x70]
cmp r14, rax
je 0x140004e76
mov rbx, qword [rbp - 0x60]
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova r9, qword [rbp - 0x70]
mov rax, qword [r14 + 0x18]
cmp rbx, rax
ja 0x140004e6b
mov r15, r14
cmp rax, 7
jbe 0x140004e4e
mov r15, qword [r14]
mov qword [r14 + 0x10], rbx
lea r8, [rbx + rbx]
mov rdx, r9
mov rcx, r15
call sub.VCRUNTIME140.dll_memmove
xor r14d, r14d
mov word [r15 + rbx*2], r14w
jmp 0x140004e79
mov rdx, rbx
mov rcx, r14
call fcn.140009e10
xor r14d, r14d
lea rax, vtable._downloading.0
mov qword [rbp - 0x10], rax
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140004ec2
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004ebd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004ebd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400844f0
movdqa xmm0, xmmword [0x1400b4970]
movdqu xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0x30], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x140004f16
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004f11
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004f11
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400844f0
movdqa xmm0, xmmword [0x1400b4950]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r14w
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x140004f62
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x140004f5d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004fdd
mov rcx, r8
call fcn.1400844f0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140004fa7
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140004fa2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004fe4
mov rcx, r8
call fcn.1400844f0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400844d0
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
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
shr rdx, 0x20
lea r8, [rbp - 0x70]
lea rcx, str.remove
call fcn.140002e50
int3
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x50]
lea rcx, str.exists
call fcn.140002f40
int3
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x50]
lea rcx, str.exists
call fcn.140002f40
int3
lea r8, [rbp - 0x70]
lea rcx, str.status
call fcn.140002e50
int3
shr rdx, 0x20
lea r8, [rbp - 0x70]
lea rcx, str.create_directory
call fcn.140002e50
int3