Function at 0x14003c250
Capabilities:
Check if file exists
Delete file
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x14012a210]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rdi, r8
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x80], rdx
cmp qword [rdx + 0x10], 0
je 0x14003c550
test r8, r8
je 0x14003c550
lea rcx, str._Inside_DownloadFileNoContentLength
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor esi, esi
mov r14d, esi
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0xa0], reloc.ACTIVEDS.dll_FreeADsMem
mov byte [rsp + 0x88], sil
xor r8d, r8d
lea rdx, [0x1400ff290]
lea rcx, [rsp + 0x88]
call fcn.140006590
nop
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14003c306
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x14003c346
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14003c4be
lea r14, [rbp + 0x98]
mov r9, r14
cmp qword [r14 + 0x18], 8
jb 0x14003c35a
mov r9, qword [r14]
mov qword [rsp + 0x40], r15
mov rcx, rbp
call fcn.14003c5e0
test eax, eax
je 0x14003c376
mov r14d, 1
jmp 0x14003c4be
lea rdx, [rbp + 0x150]
cmp qword [rbp + 0x168], 8
jb 0x14003c38e
mov rdx, qword [rbp + 0x150]
mov rcx, rsi
lea r8, [0x140106210]
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x14003c4b9
cmp rcx, 4
jne 0x14003c3a0
lea rcx, str._DownloadFileNoContentLength::_Download_failed_due_to_302_http_Status_code.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp qword [rbp + 0x180], 0
je 0x14003c4b9
lea rcx, str._Redirected_URL_is:
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdi, [rbp + 0x170]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003c3f5
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r12d, 1
mov r8d, r12d
lea rdx, [0x14010609c]
lea rcx, [rbp + 0x150]
call fcn.140011160
lea rcx, [rbp + 0x130]
cmp rcx, rdi
je 0x14003c439
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003c430
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
call fcn.140011160
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140012240
mov rdx, rax
mov rcx, rbp
call fcn.14003a3d0
test eax, eax
je 0x14003c4a0
lea rcx, str._Going_to_download_through_Redirected_URL.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor r8d, r8d
lea rdx, [0x1400ff290]
lea rcx, [rsp + 0x88]
call fcn.140006590
cmp qword [r14 + 0x18], 8
jb 0x14003c483
mov r14, qword [r14]
mov qword [rsp + 0x40], r15
mov r9, r14
mov rcx, rbp
call fcn.14003c5e0
mov r14d, dword [rsp + 0x50]
test eax, eax
cmovne r14d, r12d
jmp 0x14003c4a5
mov r14d, dword [rsp + 0x50]
xor r8d, r8d
lea rdx, [0x1400ff490]
mov rcx, rdi
call fcn.140011160
jmp 0x14003c4be
mov r14d, dword [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0xa0]
cmp rdx, 0x10
jb 0x14003c50c
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003c506
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003c5c9
call fcn.1400a59a4
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14003c54b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14003c546
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003c5cf
mov rcx, r8
call fcn.1400a59a4
mov eax, r14d
jmp 0x14003c58f
mov rdx, qword [rdx + 0x18]
cmp rdx, 8
jb 0x14003c58b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14003c586
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003c5cf
mov rcx, r8
call fcn.1400a59a4
xor esi, esi
xor eax, eax
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400a5460
mov rbx, qword [rsp + 0x108]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400b4704
nop
call fcn.1400b4704
int3