Function at 0x4c8350
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0xf0
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x50], rdx
mov qword [rbp + 0x38], r8
mov qword [rbp + 0x40], r9
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x80], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x90], 0
mov qword [rbp + 0x98], 0
mov qword [rbp + 0xa0], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0xe8], 0
mov qword [rbp + 0xe0], 0
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xd0], 0
mov qword [rbp + 0xc8], 0
mov qword [rbp + 0xc0], 0
mov qword [rbp + 0xb8], 0
nop
mov rcx, qword [rbp + 0x50]
lea rdx, [rbp + 0xa8]
mov rax, qword [rbp + 0x50]
mov rbx, qword [rax]
call qword [rbx + 0x640]
mov rax, qword [rbp + 0x50]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x18]
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0xa8]
mov r8, rax
lea r9, [0x004c8d8c]
call fcn.0042ad90
mov rcx, qword [rbp + 0x50]
lea rdx, [rbp + 0xa0]
mov rax, qword [rbp + 0x50]
mov rbx, qword [rax]
call qword [rbx + 0x650]
mov rax, qword [rbp + 0x30]
mov rax, qword [rax]
mov rcx, rax
mov edx, 0x64
mov r8, qword [rbp + 0xa0]
mov rbx, qword [rax]
call qword [rbx + 0x38]
mov rax, qword [rbp + 0x50]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x2a0]
test al, al
jne 0x4c8518
mov rax, qword [rbp + 0x50]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x2b0]
test al, al
jne 0x4c8518
mov rax, qword [rbp + 0x50]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x1f0]
test al, al
jne 0x4c8518
mov rax, qword [rbp + 0x50]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x1c0]
test al, al
jne 0x4c8518
mov rax, qword [rbp + 0x50]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x1d0]
test al, al
jne 0x4c8518
mov rax, qword [rbp + 0x50]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x1e0]
test al, al
je 0x4c8671
mov rax, qword [rbp + 0x50]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x2a0]
test al, al
je 0x4c8561
mov rcx, qword [rbp + 0x50]
lea rdx, [rbp + 0x98]
mov rax, qword [rbp + 0x50]
mov rbx, qword [rax]
call qword [rbx + 0x660]
mov rax, qword [rbp + 0x30]
mov rax, qword [rax]
mov rcx, rax
mov edx, 0x64
mov r8, qword [rbp + 0x98]
mov rbx, qword [rax]
call qword [rbx + 0x38]
mov rcx, qword [rbp + 0x50]
lea rdx, [rbp + 0x90]
mov rax, qword [rbp + 0x50]
mov rbx, qword [rax]
call qword [rbx + 0x670]
mov rax, qword [rbp + 0x30]
mov rax, qword [rax]
mov rcx, rax
mov edx, 0x64
mov r8, qword [rbp + 0x90]
mov rbx, qword [rax]
call qword [rbx + 0x38]
mov rax, qword [rbp + 0x50]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x2a0]
test al, al
jne 0x4c85be
mov rax, qword [rbp + 0x50]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x2b0]
test al, al
je 0x4c85f3
mov rcx, qword [rbp + 0x50]
lea rdx, [rbp + 0x88]
mov rax, qword [rbp + 0x50]
mov rbx, qword [rax]
call qword [rbx + 0x680]
mov rax, qword [rbp + 0x30]
mov rax, qword [rax]
mov rcx, rax
mov edx, 0x64
mov r8, qword [rbp + 0x88]
mov rbx, qword [rax]
call qword [rbx + 0x38]
mov rax, qword [rbp + 0x38]
test rax, rax
je 0x4c8642
mov rax, qword [rbp + 0x38]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x28]
test eax, eax
jle 0x4c8642
mov rcx, qword [rbp + 0x50]
lea rdx, [rbp + 0x80]
mov rax, qword [rbp + 0x50]
mov rbx, qword [rax]
call qword [rbx + 0x6a0]
mov rax, qword [rbp + 0x30]
mov rax, qword [rax]
mov rcx, rax
mov edx, 0x64
mov r8, qword [rbp + 0x80]
mov rbx, qword [rax]
call qword [rbx + 0x38]
mov rcx, qword [rbp + 0x50]
lea rdx, [rbp + 0x78]
mov rax, qword [rbp + 0x50]
mov rbx, qword [rax]
call qword [rbx + 0x6b0]
mov rax, qword [rbp + 0x30]
mov rax, qword [rax]
mov rcx, rax
mov edx, 0x64
mov r8, qword [rbp + 0x78]
mov rbx, qword [rax]
call qword [rbx + 0x38]
cmp byte [rbp + 0x158], 0
je 0x4c868b
mov rax, qword [rbp + 0x50]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x50]
test al, al
je 0x4c86c1
cmp byte [rbp + 0x160], 0
je 0x4c869f
mov qword [rbp + 0x150], 0
mov rax, qword [rbp + 0x30]
mov rax, qword [rax]
mov rcx, rax
mov rdx, qword [rbp + 0x150]
cmp byte [rbp + 0x160], 0
sete r8b
mov rax, qword [rax]
call qword [rax + 0x68]
mov rcx, qword [rbp + 0x40]
mov rdx, qword [0x00422240]
call fcn.00413ec0
mov rcx, qword [rbp + 0x140]
mov rdx, qword [0x00422240]
call fcn.00413ec0
mov rcx, qword [rbp + 0x148]
mov rdx, qword [0x00422240]
call fcn.00413ec0
lea rcx, [rbp + 0xe8]
mov rdx, qword [0x00422240]
call fcn.00413ec0
lea rcx, [rbp + 0xe0]
mov rdx, qword [0x00422240]
call fcn.00413ec0
lea rcx, [rbp + 0xd8]
mov rdx, qword [0x00422240]
call fcn.00413ec0
mov rax, qword [rbp + 0x38]
test rax, rax
je 0x4c8c78
mov rax, qword [rbp + 0x38]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x28]
xor rbx, rbx
sub eax, 1
mov dword [rbp + 0x4c], eax
mov eax, dword [rbp + 0x4c]
cmp ebx, eax
jg 0x4c8c77
mov eax, dword [rbp + 0x4c]
add eax, 1
mov dword [rbp + 0x4c], eax
mov rcx, qword [rbp + 0x38]
mov edx, ebx
lea r8, [rbp + 0xd0]
lea r9, [rbp + 0xc8]
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0xb8]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x38]
mov rax, qword [rax]
call qword [rax + 0x30]
lea rcx, [rbp + 0x70]
mov rdx, qword [rbp + 0xd0]
call fcn.004a99d0
lea rcx, [rbp + 0xd0]
mov rdx, qword [rbp + 0x70]
call fcn.00410750
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x4c87e3
mov rcx, qword [rbp + 0xd0]
call fcn.00411e10
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x4c8821
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
je 0x4c8c69
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0xd0]
xor r8, r8
call fcn.00411660
mov rcx, qword [rbp + 0x68]
call fcn.00411320
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4c8c69
cmp qword [rbp + 0xc0], 0
setne dil
test dil, dil
je 0x4c8b9d
mov rcx, qword [rbp + 0xe8]
call fcn.00413950
xor rsi, rsi
mov r13d, eax
cmp esi, r13d
jg 0x4c8880
add r13d, 1
mov rax, qword [rbp + 0xe8]
movsxd rcx, esi
mov rcx, qword [rax + rcx*8]
mov rdx, qword [rbp + 0xc0]
mov rax, qword [0x00bb6bc0]
call qword [rax]
test al, al
je 0x4c8878
xor rdi, rdi
jmp 0x4c8880
add esi, 1
cmp esi, r13d
jne 0x4c8851
nop
test dil, dil
je 0x4c8c69
mov rcx, qword [rbp + 0xe8]
call fcn.00413940
lea rcx, [rbp + 0xe8]
mov rdx, qword [0x00422240]
mov r8d, 1
lea r9, [rax + 1]
call fcn.00413ce0
mov rcx, qword [rbp + 0xe8]
call fcn.00413950
mov rcx, qword [rbp + 0xe8]
lea rcx, [rcx + rax*8]
mov rdx, qword [rbp + 0xc0]
call fcn.004106d0
lea rcx, [rbp + 0xe0]
mov rdx, qword [0x00422240]
call fcn.00413ec0
lea rcx, [rbp + 0xd8]
mov rdx, qword [0x00422240]
call fcn.00413ec0
xor rdi, rdi
mov rax, qword [rbp + 0x38]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x28]
mov esi, ebx
mov r13d, eax
sub r13d, 1
cmp esi, r13d
jg 0x4c8a2f
add r13d, 1
mov rcx, qword [rbp + 0x38]
mov edx, esi
lea r8, [rbp + 0xd0]
lea r9, [rbp + 0xc8]
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0xb8]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x38]
mov rax, qword [rax]
call qword [rax + 0x30]
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0xd0]
call fcn.004a99d0
lea rcx, [rbp + 0xd0]
mov rdx, qword [rbp + 0x60]
call fcn.00410750
mov rcx, qword [rbp + 0xe8]
call fcn.00413950
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xe8]
mov rdx, qword [rdx + rax*8]
mov rax, qword [0x00bb6bc0]
call qword [rax]
test al, al
je 0x4c8a23
lea rcx, [rbp + 0xe0]
mov rdx, qword [0x00422240]
mov r8d, 1
mov r9d, edi
add r9d, 1
movsxd r9, r9d
call fcn.00413ce0
lea rcx, [rbp + 0xd8]
mov rdx, qword [0x00422240]
mov r8d, 1
mov r9d, edi
add r9d, 1
movsxd r9, r9d
call fcn.00413ce0
mov rax, qword [rbp + 0xe0]
movsxd rcx, edi
lea rcx, [rax + rcx*8]
mov rdx, qword [rbp + 0xd0]
call fcn.004106d0
mov rax, qword [rbp + 0xd8]
movsxd rcx, edi
lea rcx, [rax + rcx*8]
mov rdx, qword [rbp + 0xc8]
call fcn.004106d0
add edi, 1
add esi, 1
cmp esi, r13d
jne 0x4c8923
nop
mov rcx, qword [rbp + 0x38]
mov edx, ebx
lea r8, [rbp + 0xd0]
lea r9, [rbp + 0xc8]
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0xb8]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x38]
mov rax, qword [rax]
call qword [rax + 0x30]
lea rcx, [rbp + 0xd0]
call fcn.004a9c80
cmp qword [rbp + 0xd0], 0
je 0x4c8c69
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0xd0]
mov r8, qword [rbp + 0xc0]
call fcn.00412270
mov rcx, qword [rbp + 0xe0]
call fcn.00413950
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0xe0]
mov r8, rax
mov r9, qword [rbp + 0xd8]
call fcn.00442b70
test al, al
je 0x4c8c69
mov rax, qword [rbp + 0x40]
mov rcx, qword [rax]
call fcn.00413940
mov rsi, rax
mov rcx, qword [rbp + 0x40]
mov rdx, qword [0x00422240]
mov r8d, 1
mov r9d, esi
add r9d, 1
movsxd r9, r9d
call fcn.00413ce0
mov rcx, qword [rbp + 0x140]
mov rdx, qword [0x00422240]
mov r8d, 1
mov r9d, esi
add r9d, 1
movsxd r9, r9d
call fcn.00413ce0
mov rcx, qword [rbp + 0x148]
mov rdx, qword [0x00422240]
mov r8d, 1
mov r9d, esi
add r9d, 1
movsxd r9, r9d
call fcn.00413ce0
mov rax, qword [rbp + 0x40]
mov rax, qword [rax]
movsxd rcx, esi
lea rcx, [rax + rcx*8]
mov rdx, qword [rbp + 0xd0]
mov r8, qword [rbp + 0xc0]
call fcn.00412270
mov rax, qword [rbp + 0x140]
mov rax, qword [rax]
movsxd rcx, esi
lea rcx, [rax + rcx*8]
mov rdx, qword [rbp + 0xc0]
call fcn.004106d0
mov rax, qword [rbp + 0x148]
mov rax, qword [rax]
movsxd rsi, esi
lea rcx, [rax + rsi*8]
mov rdx, qword [rbp + 0xc0]
call fcn.004106d0
jmp 0x4c8c69
mov rax, qword [rbp + 0x40]
mov rcx, qword [rax]
call fcn.00413940
mov rsi, rax
mov rcx, qword [rbp + 0x40]
mov rdx, qword [0x00422240]
mov r8d, 1
mov r9d, esi
add r9d, 1
movsxd r9, r9d
call fcn.00413ce0
mov rcx, qword [rbp + 0x140]
mov rdx, qword [0x00422240]
mov r8d, 1
mov r9d, esi
add r9d, 1
movsxd r9, r9d
call fcn.00413ce0
mov rcx, qword [rbp + 0x148]
mov rdx, qword [0x00422240]
mov r8d, 1
mov r9d, esi
add r9d, 1
movsxd r9, r9d
call fcn.00413ce0
mov rax, qword [rbp + 0x40]
mov rax, qword [rax]
movsxd rcx, esi
lea rcx, [rax + rcx*8]
mov rdx, qword [rbp + 0xd0]
call fcn.004106d0
mov rax, qword [rbp + 0x140]
mov rax, qword [rax]
movsxd rcx, esi
lea rcx, [rax + rcx*8]
mov rdx, qword [rbp + 0xc8]
call fcn.004106d0
mov rax, qword [rbp + 0x148]
mov rax, qword [rax]
movsxd rsi, esi
lea rcx, [rax + rsi*8]
mov rdx, qword [rbp + 0xb8]
call fcn.004106d0
add ebx, 1
mov eax, dword [rbp + 0x4c]
cmp ebx, eax
jne 0x4c8767
nop
nop
lea rcx, [rbp + 0x58]
mov edx, 2
call fcn.00410160
lea rcx, [rbp + 0x68]
call fcn.004100d0
lea rcx, [rbp + 0x70]
mov edx, 8
call fcn.00410160
lea rcx, [rbp + 0xb8]
mov edx, 4
call fcn.00410160
lea rcx, [rbp + 0xd8]
mov rdx, qword [0x00422240]
mov r8d, 3
call fcn.00412e00
mov rax, qword [rbp + 0x30]
lea rsp, [rbp + 0xf0]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret