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

Disassembly:
push rbp
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x2b8
mov rbp, rsp
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x80], 0
nop
xor rdi, rdi
mov rax, qword [rbp + 0x48]
mov rcx, qword [rax + 0x18]
call fcn.00471bd0
mov rbx, rax
mov rcx, rbx
call fcn.00429e60
mov dword [rbp + 0x40], eax
mov eax, dword [rbp + 0x40]
cmp eax, 0x104
jl 0x438642
mov rax, qword [0x0048a470]
mov dword [rax], 0x233f
xor rax, rax
mov dword [rbp + 0x44], eax
jmp 0x438e5f
mov rax, qword [0x0048a0c8]
cmp byte [rax], 0
je 0x438677
mov rcx, rbx
lea rdx, [0x00438eb8]
mov r8d, 4
call fcn.0041dce0
test eax, eax
jne 0x438677
lea rcx, [0x00438ec2]
call fcn.0042c4d0
mov rbx, rax
lea rcx, [rbp + 0x9a]
xor rdx, rdx
mov r8d, 0x104
call fcn.00429ff0
lea rcx, [rbp + 0x9a]
mov rdx, rbx
call fcn.00429e80
lea rcx, [rbp + 0x9a]
mov dx, 0x2f
call fcn.0042f360
mov word [rbp + 0x2aa], 0x5c
mov word [rbp + 0x2ac], 0x3a
mov word [rbp + 0x2ae], 0
lea rcx, [rbp + 0x9a]
lea rdx, [rbp + 0x2aa]
call fcn.00429ec0
mov ecx, dword [rbp + 0x40]
cmp eax, ecx
setl al
mov byte [rbp + 0x37], al
mov word [rbp + 0x2ac], 0
movzx rax, byte [rbp + 0x37]
test al, al
je 0x438728
lea rcx, [rbp + 0x9a]
mov dx, 0x5c
call fcn.00429df0
mov rbx, rax
test rbx, rbx
jne 0x438722
lea rcx, [rbp + 0x9a]
mov dx, 0x3a
call fcn.00429dc0
mov rbx, rax
add rbx, 2
jmp 0x43872f
lea rbx, [rbp + 0x9a]
test rbx, rbx
je 0x43875a
mov rcx, rbx
lea rdx, [0x00438ed2]
call fcn.0041dbb0
test eax, eax
je 0x43875a
mov rcx, rbx
lea rdx, [0x00438ed6]
call fcn.0041dbb0
test eax, eax
jne 0x4387a2
mov rax, qword [0x0048a0c8]
cmp byte [rax], 0
je 0x43878a
mov rcx, qword [rbp + 0x28]
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x43878a
test eax, 0x10
je 0x43878a
mov eax, 5
mov dword [rbp + 0x44], eax
jmp 0x438e5f
mov rax, qword [0x0048a470]
mov dword [rax], 0x2331
xor rax, rax
mov dword [rbp + 0x44], eax
jmp 0x438e5f
mov ecx, 0x410
call fcn.0046fa60
mov rsi, rax
test rsi, rsi
jne 0x4387d0
mov rax, qword [0x0048a470]
mov dword [rax], 8
mov eax, 3
mov dword [rbp + 0x44], eax
jmp 0x438e5f
mov rcx, qword [rbp + 0x28]
lea rdx, [rbp + 0x9a]
call fcn.00429e80
mov rax, rbx
mov rcx, rax
call fcn.0040aa00
mov r13d, eax
lea rcx, [rbp + 0x9a]
call fcn.00429e60
movsxd rax, eax
mov r13d, r13d
neg r13
lea rax, [rax + r13]
mov rcx, qword [rbp + 0x28]
mov word [rcx + rax*2], 0
lea rdx, [0x00438ed2]
call fcn.00429ea0
mov rcx, rsi
mov rdx, qword [rbp + 0x28]
mov r8d, 0x208
call fcn.0042e8a0
test eax, eax
je 0x43887c
mov rax, qword [0x0048a0c8]
cmp byte [rax], 0
je 0x438864
mov rcx, qword [rbp + 0x28]
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x438864
test eax, 0x10
je 0x438864
mov eax, 5
mov dword [rbp + 0x44], eax
jmp 0x438e5f
mov rax, qword [0x0048a470]
mov dword [rax], 0x2331
xor rax, rax
mov dword [rbp + 0x44], eax
jmp 0x438e5f
mov rcx, rsi
call fcn.0042a010
cmp word [rax], 0x5c
je 0x438899
mov rcx, rsi
lea rdx, [0x00438edc]
call fcn.00429ea0
mov rcx, rsi
mov rdx, rbx
call fcn.00429ea0
mov rcx, rsi
call fcn.00429e60
mov rcx, rsi
mov edx, eax
add edx, 1
add edx, edx
call fcn.0046fb80
mov rsi, rax
mov rcx, rsi
mov dx, 0x5c
call fcn.00429df0
mov qword [rbp + 0x38], rax
mov word [rax], 0
add rax, 2
mov qword [rbp + 0x38], rax
movzx rax, byte [rbp + 0x37]
test al, al
jne 0x4388f3
lea rcx, [0x00438ee0]
call fcn.0042c4d0
mov rdi, rax
mov rcx, rsi
call fcn.00429e60
mov ebx, eax
mov rcx, rdi
call fcn.00429e60
mov ecx, ebx
add ecx, eax
add ecx, 4
add ecx, ecx
call fcn.0046fa60
mov rbx, rax
test rbx, rbx
jne 0x438936
mov rax, qword [0x0048a470]
mov dword [rax], 8
mov eax, 3
mov dword [rbp + 0x44], eax
jmp 0x438e5f
mov rcx, rbx
lea rdx, [0x00438eea]
call fcn.00429ea0
mov rcx, rbx
mov rdx, rsi
call fcn.00429ea0
mov rcx, rbx
lea rdx, [0x00438eea]
call fcn.00429ea0
movzx rax, byte [rbp + 0x37]
test al, al
jne 0x438982
mov rcx, rbx
lea rdx, [0x00438eee]
call fcn.00429ea0
mov rcx, rbx
mov rdx, rdi
call fcn.00429ea0
mov rcx, rbx
call fcn.00439df0
mov rcx, rbx
lea rdx, [0x00438eee]
mov r8d, 1
call fcn.0046fcf0
mov rbx, rax
mov rcx, qword [rbp + 0x38]
call fcn.00429e60
add eax, 1
mov dword [rbp + 0x40], eax
mov rax, qword [0x0048a0c8]
cmp byte [rax], 0
je 0x4389cf
lea rcx, [0x00438ef2]
call fcn.0042c4d0
mov rsi, rax
jmp 0x4389d6
lea rsi, [0x00438f02]
mov rcx, rsi
call fcn.00439df0
mov rcx, rsi
lea rdx, [0x00438eee]
mov r8d, 1
call fcn.0046fcf0
mov rsi, rax
mov rcx, rbx
call fcn.00429e60
mov edi, eax
mov rcx, rbx
call fcn.00471bd0
mov rcx, rbx
mov rdx, rax
call fcn.00429e80
mov rcx, rbx
call fcn.00429e60
mov r13d, eax
mov rcx, rbx
call fcn.0042a010
cmp word [rax], 0x5c
je 0x438a39
mov r14b, 1
add edi, 1
add r13d, 1
jmp 0x438a3c
xor r14, r14
cmp word [rbx], 0
je 0x438a72
mov eax, r13d
mov ecx, dword [rbp + 0x40]
movsxd rcx, ecx
lea rax, [rax + rcx]
cmp rax, 0x104
jle 0x438a72
test r14b, r14b
je 0x438a68
movsxd rdi, edi
add rdi, rdi
add rbx, rdi
jmp 0x4389f7
movsxd rdi, edi
lea rbx, [rbx + rdi*2 + 2]
jmp 0x4389f7
cmp word [rbx], 0
jne 0x438ac0
movzx rax, byte [rbp + 0x37]
test al, al
je 0x438aa8
mov rax, qword [0x0048a470]
cmp dword [rax], 0
je 0x438a99
mov rax, qword [0x0048a470]
cmp dword [rax], 2
jne 0x438ab5
mov rax, qword [0x0048a470]
mov dword [rax], 0x2331
jmp 0x438ab5
mov rax, qword [0x0048a470]
mov dword [rax], 0x2331
xor rax, rax
mov dword [rbp + 0x44], eax
jmp 0x438e5f
mov rcx, qword [rbp + 0x28]
mov rdx, rbx
call fcn.00429e80
test r14b, r14b
je 0x438adc
movsxd rdi, edi
add rdi, rdi
add rbx, rdi
jmp 0x438ae4
movsxd rdi, edi
lea rbx, [rbx + rdi*2 + 2]
test r14b, r14b
je 0x438af9
mov rcx, qword [rbp + 0x28]
lea rdx, [rbp + 0x2aa]
call fcn.00429ea0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.00429ea0
mov rcx, qword [rbp + 0x28]
call fcn.00471bd0
mov rcx, qword [rbp + 0x28]
mov rdx, rax
call fcn.00429e80
mov rcx, qword [rbp + 0x28]
call fcn.00429e60
mov r14d, eax
mov rax, qword [rbp + 0x28]
cmp word [rax + 2], 0x3a
jne 0x438b47
mov rax, qword [rbp + 0x28]
movzx rcx, word [rax]
call fcn.00471a80
test al, al
je 0x4389f7
mov rcx, qword [rbp + 0x38]
mov dx, 0x2e
call fcn.00429df0
mov rdi, rax
test rdi, rdi
je 0x438c71
cmp word [rdi + 2], 0
je 0x438c71
mov rcx, qword [rbp + 0x28]
mov dl, 1
call fcn.0042f270
test al, al
jne 0x438b97
movzx rax, byte [rbp + 0x37]
test al, al
je 0x438c55
mov rax, qword [0x0048a470]
cmp dword [rax], 5
jne 0x438c55
lea rcx, [rbp + 0x80]
mov rdx, qword [rbp + 0x28]
call fcn.0040b600
lea rcx, [rbp + 0x88]
mov rdx, qword [rbp + 0x80]
call fcn.0041d920
mov rcx, qword [rbp + 0x88]
call fcn.0040b560
mov rbx, rax
lea rcx, [rbp + 0x70]
call fcn.00429cc0
lea rcx, [rbp + 0x78]
mov rdx, qword [rbp + 0x70]
call fcn.0041d920
mov rcx, qword [rbp + 0x78]
call fcn.0040b560
mov rcx, rbx
mov rdx, rax
call fcn.0041dbe0
test eax, eax
jne 0x438c05
mov eax, 2
mov dword [rbp + 0x44], eax
jmp 0x438e5f
mov rcx, rdi
lea rdx, [0x00438f2a]
call fcn.0041dbe0
test eax, eax
jne 0x438c26
mov eax, 2
mov dword [rbp + 0x44], eax
jmp 0x438e5f
mov rcx, rdi
lea rdx, [0x00438f34]
call fcn.0041dbe0
test eax, eax
jne 0x438c47
mov eax, 2
mov dword [rbp + 0x44], eax
jmp 0x438e5f
mov eax, 1
mov dword [rbp + 0x44], eax
jmp 0x438e5f
mov rax, qword [0x0048a470]
cmp dword [rax], 2
je 0x438c71
mov rax, qword [0x0048a470]
cmp dword [rax], 0
jne 0x4389f7
mov rcx, qword [rbp + 0x38]
mov dx, 0x2a
call fcn.00429dc0
test rax, rax
jne 0x438c95
mov rcx, qword [rbp + 0x38]
mov dx, 0x3f
call fcn.00429dc0
test rax, rax
je 0x438cad
mov rax, qword [0x0048a470]
mov dword [rax], 0x2331
xor rax, rax
mov dword [rbp + 0x44], eax
jmp 0x438e5f
mov rdi, rsi
mov rcx, qword [rbp + 0x28]
mov edx, r14d
lea r8, [0x00438f3e]
xor r9, r9
call fcn.00438f50
test eax, eax
je 0x438ded
jmp 0x438de2
mov rcx, rdi
call fcn.00429e60
mov ecx, dword [rbp + 0x40]
movsxd rcx, ecx
mov edx, r13d
lea rcx, [rcx + rdx]
movsxd rax, eax
lea rax, [rcx + rax]
cmp rax, 0x104
jg 0x438dd8
mov rcx, qword [rbp + 0x28]
mov edx, r14d
mov r8, rdi
mov r9b, 1
call fcn.00438f50
test eax, eax
je 0x438dba
mov rcx, rdi
lea rdx, [0x00438f34]
call fcn.0041dbe0
test eax, eax
je 0x438d3c
mov rcx, rdi
lea rdx, [0x00438f2a]
call fcn.0041dbe0
test eax, eax
jne 0x438d4a
mov eax, 2
mov dword [rbp + 0x44], eax
jmp 0x438e5f
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x28]
call fcn.0040b600
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
call fcn.0041d920
mov rcx, qword [rbp + 0x68]
call fcn.0040b560
mov rbx, rax
lea rcx, [rbp + 0x50]
call fcn.00429cc0
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x50]
call fcn.0041d920
mov rcx, qword [rbp + 0x58]
call fcn.0040b560
mov rcx, rbx
mov rdx, rax
call fcn.0041dbe0
test eax, eax
jne 0x438dac
mov eax, 2
mov dword [rbp + 0x44], eax
jmp 0x438e5f
mov eax, 1
mov dword [rbp + 0x44], eax
jmp 0x438e5f
mov rax, qword [0x0048a470]
cmp dword [rax], 2
je 0x438dd8
mov rax, qword [0x0048a470]
cmp dword [rax], 0
jne 0x438dec
jmp 0x438dd8
add rdi, 2
cmp word [rdi], 0
jne 0x438dd4
add rdi, 2
cmp word [rdi], 0
jne 0x438cd3
nop
mov rax, qword [0x0048a470]
cmp dword [rax], 0
je 0x438e09
mov rax, qword [0x0048a470]
cmp dword [rax], 2
jne 0x4389f7
mov rcx, qword [rbp + 0x28]
mov edx, r14d
xor r8, r8
mov r9b, 1
call fcn.00438f50
test eax, eax
je 0x4389f7
mov rcx, qword [rbp + 0x28]
lea rdx, [rbp + 0x2a4]
call sub.kernel32.dll_GetBinaryTypeW
test eax, eax
je 0x4389f7
cmp dword [rbp + 0x2a4], 4
jne 0x4389f7
mov eax, 1
mov dword [rbp + 0x44], eax
jmp 0x438e5f
lea rcx, [rbp + 0x50]
mov edx, 8
call fcn.0040a350
mov eax, dword [rbp + 0x44]
lea rsp, [rbp + 0x2b8]
pop rbx
pop rsi
pop rdi
pop r13
pop r14
pop rbp
ret