Function at 0x18005d1e0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x180097ee8]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea edi, [rdx - 0xf]
mov qword [rsp + 0x48], r8
mov dword [rsp + 0x40], edi
mov r12, r9
mov r14, r8
mov rsi, rcx
cmp edx, edi
jbe case.0x18005d255.0
mov r15, qword [rsp + 0x48]
lea r13d, [rdx - 0xfa]
xor ebx, ebx
lea rdx, [0x180000000]
cmp r13d, 0x30
ja case.0x18005d255.6
movzx eax, byte [rdx + r13 + 0x5d4bc]
mov ecx, dword [rdx + rax*4 + 0x5d480]
add rcx, rdx
jmp rcx
mov dword [rsp + 0x5a], 0x720041
jmp case.0x18005d255.6
mov r8d, 3
lea rdx, [0x18008e806]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov word [rsp + 0x66], bx
jmp case.0x18005d255.6
mov r15, qword [r12]
jmp case.0x18005d255.6
mov byte [rsp + 0x38], 1
jmp case.0x18005d255.6
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jmp case.0x18005d255.6
mov eax, dword [0x18008e822]
mov dword [rsp + 0x54], eax
movzx eax, word [0x18008e826]
mov word [rsp + 0x58], ax
mov dword [rsp + 0x50], 0x75006b
jmp case.0x18005d255.6
mov r9, qword [rsi]
test r9, r9
je 0x18005d357
mov rbp, rbx
cmp qword [rsi + 8], rbx
jbe 0x18005d33c
mov r14, rbx
mov r9, qword [rsi]
mov rax, qword [r14 + r9]
test rax, rax
je 0x18005d326
mov r8, qword [r15 + 0x40]
lea rcx, [rsp + 0x30]
mov rdi, qword [rax + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
mov edx, 0xf3
xor ecx, ecx
mov byte [rsp + 0x30], 1
mov qword [rsp + 0x20], rax
call fcn.18002a1f0
mov rax, rdi
test rdi, rdi
jne 0x18005d2f0
mov r9, qword [rsi]
inc rbp
add r14, 0x18
cmp rbp, qword [rsi + 8]
jb 0x18005d2e4
mov edi, dword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rdx, qword [r15 + 0x40]
xor r8d, r8d
mov dword [rsp + 0x28], 0xb3
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.18001eaa0
cmp byte [r14], bl
jne 0x18005d3da
mov qword [rsp + 0x38], rsi
jmp case.0x18005d255.6
mov rdx, qword [0x180098140]
cmp rdx, qword [0x180098148]
je 0x18005d388
mov rax, qword [r12]
mov qword [rdx], rax
add qword [0x180098140], 8
jmp case.0x18005d255.6
mov r8, r12
lea rcx, [0x180098138]
call fcn.180005eb0
jmp case.0x18005d255.6
mov r8d, 1
lea rdx, [0x18008e944]
lea rcx, [rsp + 0x66]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov word [rsp + 0x68], bx
jmp case.0x18005d255.6
mov dword [rsp + 0x5e], 0x61
jmp case.0x18005d255.6
test rsi, rsi
je 0x18005d3f0
dec r13d
lea eax, [r13 + 0xfa]
cmp eax, edi
jbe case.0x18005d255.0
jmp 0x18005d231
mov rcx, qword [r12 + 0x48]
mov r9d, 0xca
xor r8d, r8d
mov rdx, rsi
call fcn.180038ef0
mov rax, rbx
jmp 0x18005d441
mov ecx, dword [rsi]
sub ecx, 1
je 0x18005d437
sub ecx, 7
je 0x18005d469
cmp ecx, 0xf
je 0x18005d428
mov qword [rsp + 0x28], rbx
mov r9, r12
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov edx, 0x115
xor ecx, ecx
call fcn.18005d6b0
mov byte [rsp + 0x38], bl
jmp case.0x18005d255.0
lea rax, [0x180066c10]
mov qword [r12 + 0x98], rax
mov byte [rsp + 0x38], 1
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180067b60
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rax, [0x180066c10]
mov byte [rsp + 0x38], bl
mov qword [r12 + 0x98], rax
jmp case.0x18005d255.0