Function at 0x140076580
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0xc8]
sub rsp, 0x1b0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140131088]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov qword [rsp + 0x60], 7
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov word [rsp + 0x48], r14w
or rbx, 0xffffffffffffffff
cmp qword [rcx + 0x10], r14
jne 0x140076753
lea rcx, [rsp + 0x68]
call fcn.14002b330
nop
cmp qword [rax + 0x18], 0x10
jb 0x1400765f1
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140085920
mov rsi, rax
cmp qword [rax + 0x18], 8
jb 0x14007660b
mov rsi, qword [rax]
lea rax, [rbp - 0x68]
mov qword [rbp - 0x70], rax
test rsi, rsi
jne 0x140076621
mov rdx, r14
mov qword [rbp - 0x70], rdx
jmp 0x140076691
mov rdi, rbx
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x140076624
inc edi
lea r8, [rbp - 0x68]
mov edx, edi
lea rcx, [rbp - 0x70]
call fcn.140031460
movsxd rdx, edi
add rdx, rdx
mov r9, rdx
mov r8, rsi
mov rcx, qword [rbp - 0x70]
call fcn.1400097e0
test eax, eax
je 0x14007668d
cmp eax, 0xc
je 0x140076682
cmp eax, 0x16
je 0x140076677
cmp eax, 0x22
je 0x140076677
cmp eax, 0x50
je 0x14007668d
mov ecx, 0x80004005
call fcn.140009900
int3
mov ecx, 0x80070057
call fcn.140009900
int3
mov ecx, 0x8007000e
call fcn.140009900
int3
mov rdx, qword [rbp - 0x70]
cmp word [rdx], 0
jne 0x14007669c
mov r8, r14
jmp 0x1400766ab
mov r8, rbx
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400766a0
lea rcx, [rsp + 0x48]
call fcn.140008a20
nop
lea rax, [rbp - 0x68]
mov rcx, qword [rbp - 0x70]
cmp rcx, rax
je 0x1400766c9
call fcn.1400a24a4
nop
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x1400766e6
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140008b70
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r14
mov word [rsp + 0x28], r14w
mov rax, qword [rbp - 0x80]
cmp rax, 0x10
jb 0x140076770
inc rax
mov rcx, qword [rsp + 0x68]
cmp rax, 0x1000
jb 0x14007674c
test cl, 0x1f
je 0x14007671f
call fcn.1400a26d8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14007672e
call fcn.1400a26d8
int3
sub rcx, rax
cmp rcx, 8
jae 0x14007673d
call fcn.1400a26d8
int3
cmp rcx, 0x27
jbe 0x140076749
call fcn.1400a26d8
int3
mov rcx, rax
call fcn.14009d844
jmp 0x140076770
lea rax, [rsp + 0x48]
cmp rax, rcx
je 0x14007677d
mov r9, rbx
xor r8d, r8d
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.140008be0
cmp qword [rsp + 0x60], 8
mov rdx, qword [rsp + 0x48]
jae 0x140076782
lea rdx, [rsp + 0x48]
cmp word [rdx], 0
jne 0x140076790
mov rbx, r14
jmp 0x14007679a
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140076790
mov r8, rbx
lea rcx, [0x1401399c0]
call fcn.140008a20
mov dword [0x140139a00], 0x64
mov dword [0x140139a04], 7
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r14
mov word [rsp + 0x28], r14w
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, str.c:_sunlogin_debug_rt
lea rcx, [rsp + 0x28]
call fcn.140008a20
cmp qword [rsp + 0x38], 0
jne 0x1400767f4
xor bl, bl
jmp 0x140076810
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x14007682d
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140008b70
movzx eax, byte [0x140139aa2]
mov ecx, 1
test bl, bl
cmovne eax, ecx
mov byte [0x140139aa2], al
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x140076861
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.140008b70
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14009d860
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret