Function at 0x140043800
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x140189090]
xor rax, rsp
mov qword [rbp + 0x210], rax
movzx ebx, r8b
movzx esi, dl
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], 7
mov word [rcx], r14w
mov qword [rbp - 0x48], r14
movdqa xmm0, xmmword [0x140166ac0]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], r14b
lea r8d, [r14 + 0x14]
lea rdx, [0x14015d388]
lea rcx, [rbp - 0x48]
call fcn.140009250
nop
mov rdx, rdi
lea rcx, [rbp - 0x48]
call fcn.14001b5c0
nop
lea rcx, [rbp - 0x48]
call fcn.1400091f0
nop
mov dword [rsp + 0x20], 1
test bl, bl
je 0x14004396d
mov rbx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400438b6
mov rbx, qword [rdi]
lea rdx, [0x14015ec5c]
lea rcx, [rbp - 0x20]
call fcn.140050070
mov rsi, rax
lea rdx, [0x14015b7e0]
test rbx, rbx
cmovne rdx, rbx
mov qword [rsp + 0x28], r14
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r14w
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140043900
lea rcx, [rsp + 0x28]
call fcn.140009050
nop
lea r8, [rsp + 0x28]
lea rdx, [rbp - 0x48]
mov rcx, rsi
call fcn.140024c30
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x28]
call fcn.140008fe0
nop
lea rcx, [rbp - 0x20]
call fcn.140008fe0
nop
lea rax, [rbp - 0x48]
cmp rdi, rax
je 0x140043968
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
mov rcx, rdi
call fcn.140009050
nop
jmp 0x140043c17
test sil, sil
je 0x140043c20
mov qword [rbp - 0x20], r14
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], r14w
mov dword [rsp + 0x20], 5
lea rbx, [fcn.140025400]
mov qword [rbp - 0x50], rbx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp]
call fcn.1400fb5b0
lea r8, [rbp - 0x50]
mov rdx, rbx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov r8d, 0x104
lea rdx, [rbp]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1400439fd
cmp word [rbp], 0
jne 0x1400439fd
mov dword [rbp - 0x28], 0x104
lea r9, [rbp - 0x28]
lea r8, [rbp]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
mov qword [rsp + 0x28], r14
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r14w
lea rax, [rbp]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140043a21
lea rdx, [rbp]
lea rcx, [rsp + 0x28]
call fcn.140009050
nop
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x28]
call fcn.140025a60
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_DosDateTimeToVariantTime
lea rcx, [rsp + 0x28]
call fcn.140008fe0
nop
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
lea rcx, [rbp - 0x20]
call fcn.140009050
nop
lea rcx, [rbp - 0x48]
call fcn.140008fe0
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x20]
call fcn.140024a70
nop
mov r8, rdi
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140024c30
nop
cmp rdi, rax
je 0x140043ac0
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140043ab4
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140009050
nop
lea rcx, [rsp + 0x50]
call fcn.140008fe0
nop
lea rcx, [rsp + 0x70]
call fcn.140008fe0
nop
lea rcx, [rbp - 0x20]
call fcn.140008fe0
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140043aec
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x140043c20
mov qword [rbp - 0x48], r14
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r14w
mov dword [rsp + 0x20], 0x19
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140025770
nop
lea rcx, [rbp - 0x48]
cmp rcx, rax
je 0x140043b4d
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140043b40
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.140009050
nop
lea rcx, [rsp + 0x70]
call fcn.140008fe0
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x48]
call fcn.140024a70
mov rbx, rax
mov qword [rsp + 0x28], r14
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r14w
mov qword [rbp - 0x20], r14
movdqa xmm0, xmmword [0x140166ac0]
movdqu xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], 0
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, [0x14015d388]
lea rcx, [rbp - 0x20]
call fcn.140009250
nop
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x20]
call fcn.14001b5c0
nop
lea rcx, [rbp - 0x20]
call fcn.1400091f0
nop
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140024c30
nop
cmp rdi, rax
je 0x140043bf7
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140043beb
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140009050
nop
lea rcx, [rsp + 0x50]
call fcn.140008fe0
nop
lea rcx, [rsp + 0x28]
call fcn.140008fe0
nop
lea rcx, [rbp - 0x70]
call fcn.140008fe0
nop
lea rcx, [rbp - 0x48]
call fcn.140008fe0
mov rax, rdi
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1400f89b0
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret