Function at 0x140076a90
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140131088]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r15, rcx
xor r12d, r12d
mov dword [rbp - 0x29], r12d
mov qword [rbp + 7], 7
mov qword [rbp - 1], r12
mov word [rbp - 0x11], r12w
lea r8d, [r12 + 0x11]
lea rdx, [0x1400f7c60]
lea rcx, [rbp - 0x11]
call fcn.140008a20
nop
mov esi, 1
mov ebx, esi
mov dword [rbp - 0x29], ebx
cmp qword [rbp - 1], r12
je 0x140076b1d
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140076b68
mov qword [rbp + 0x27], 7
mov qword [rbp + 0x1f], r12
mov word [rbp + 0xf], r12w
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.c:_sunlogin.debug
lea rcx, [rbp + 0xf]
call fcn.140008a20
mov ebx, 3
cmp qword [rbp + 0x1f], 0
je 0x140076b6e
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rcx, qword [rbp + 0xf]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140076b6e
movzx edi, sil
jmp 0x140076b71
xor dil, dil
test bl, 2
je 0x140076ba1
mov r8, qword [rbp + 0x27]
cmp r8, 8
jb 0x140076b90
inc r8
mov rdx, qword [rbp + 0xf]
lea rcx, [rbp + 0xf]
call fcn.140008b70
mov qword [rbp + 0x27], 7
mov qword [rbp + 0x1f], r12
mov word [rbp + 0xf], r12w
mov r8, qword [rbp + 7]
cmp r8, 8
jb 0x140076bbb
inc r8
mov rdx, qword [rbp - 0x11]
lea rcx, [rbp - 0x11]
call fcn.140008b70
mov eax, 7
mov ecx, 0xff
test dil, dil
cmovne eax, ecx
mov dword [0x140139a04], eax
mov qword [rbp + 7], 7
mov qword [rbp - 1], r12
mov word [rbp - 0x11], r12w
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, str.c:_sunlogin_debug_rt
lea rcx, [rbp - 0x11]
call fcn.140008a20
cmp qword [rbp - 1], 0
jne 0x140076c03
xor bl, bl
jmp 0x140076c1c
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
mov r8, qword [rbp + 7]
cmp r8, 8
jb 0x140076c36
inc r8
mov rdx, qword [rbp - 0x11]
lea rcx, [rbp - 0x11]
call fcn.140008b70
movzx eax, byte [0x140139aa2]
test bl, bl
cmovne eax, esi
mov byte [0x140139aa2], al
call fcn.1400769c0
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
lea rcx, [rbp - 0x21]
call fcn.140074a70
nop
mov r8d, 5
lea rdx, [rbp - 0x11]
mov rcx, r15
call fcn.140050270
nop
cmp qword [rax + 0x18], 0x10
jb 0x140076c7f
mov rax, qword [rax]
mov rbx, qword [rbp - 0x21]
mov rdi, qword [rbx]
add rdi, 0x18
xor edx, edx
lea r8d, [rdx + 0xa]
mov rcx, rax
call fcn.1400acfa0
mov edx, eax
lea rax, str.AGENTDWM
mov qword [rsp + 0x20], rax
mov r9d, 0x66
mov r8d, r14d
mov rcx, rbx
call qword [rdi]
movzx edi, al
mov rcx, qword [rbp + 7]
cmp rcx, 0x10
jb 0x140076d11
inc rcx
mov rdx, qword [rbp - 0x11]
cmp rcx, 0x1000
jb 0x140076d09
test dl, 0x1f
je 0x140076cdc
call fcn.1400a26d8
int3
mov rax, qword [rdx - 8]
cmp rax, rdx
jb 0x140076ceb
call fcn.1400a26d8
int3
sub rdx, rax
cmp rdx, 8
jae 0x140076cfa
call fcn.1400a26d8
int3
cmp rdx, 0x27
jbe 0x140076d06
call fcn.1400a26d8
int3
mov rdx, rax
mov rcx, rdx
call fcn.14009d844
test dil, dil
je 0x140076d8d
mov dword [rbp - 0x29], r12d
mov rax, qword [rbx]
lea rdx, [rbp - 0x29]
mov rcx, rbx
call qword [rax + 0x20]
test al, al
je 0x140076d88
lea rax, str._DwmLoader__Hook_proc_exited
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x163
lea r9, str.start_dwm_loader
lea r8, str..._sunloginclient_new_main_desktopagent.cpp
mov edx, 8
lea rcx, [0x1401399a0]
call fcn.14007a380
cmp dword [rbp - 0x29], 0
jne 0x140076d68
mov dl, 1
jmp 0x140076d7f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x3e8
setb dl
call fcn.140076e20
xor edx, edx
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x28]
mov dil, 1
jmp 0x140076dd8
lea rax, str._DwmLoader__InjectToDwm_failed
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x173
lea r9, str.start_dwm_loader
lea r8, str..._sunloginclient_new_main_desktopagent.cpp
mov edx, 2
lea rcx, [0x1401399a0]
call fcn.14007a380
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x3e8
setb dl
call fcn.140076e20
xor dil, dil
mov rcx, qword [rbx + 8]
movsxd rdx, dword [rcx + 4]
lea rcx, [rbx + 8]
add rcx, rdx
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
nop
movzx eax, dil
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14009d860
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret