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

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1d0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r13, r9
mov rbp, r8
mov r12d, edx
mov rbx, rcx
lea rcx, [rsp + 0x30]
call fcn.10001e06c
nop
lea rcx, [rsp + 0x70]
call fcn.10003845c
nop
xor esi, esi
lea r14d, [rsi + 1]
mov dword [rsp + 0x38], esi
mov r15d, esi
lea rcx, [rsp + 0x20]
call fcn.10001e06c
nop
cmp rbx, rsi
je 0x1000370e5
cmp r13, rsi
je 0x1000370e5
mov dword [r13], esi
mov ecx, 0x7fff
mov rax, rbx
cmp word [rax], si
je 0x100036acb
add rax, 2
sub rcx, 1
jne 0x100036abc
cmp rcx, rsi
jne 0x100036b02
lea rdx, [0x10000bc50]
mov ecx, 3
call fcn.100037e18
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x70]
call fcn.10003861c
nop
mov edi, 0xce
jmp 0x100036d64
lea rax, [rsp + 0x200]
mov qword [rsp + 0x28], rax
mov rdx, rbx
lea rcx, [rsp + 0x200]
call fcn.10001e134
nop
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.10003171c
mov edi, eax
cmp eax, esi
je 0x100036b68
mov r9, rbx
lea r8, [0x10000bca0]
mov edx, eax
mov ecx, 3
call fcn.100037ee8
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x70]
call fcn.10003861c
nop
jmp 0x100036d64
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x100036b87
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100036b8d
shr edi, 3
and edi, 2
cmp edi, esi
je 0x100036bc3
mov r9, rbx
lea r8, [0x10000bce8]
mov edx, edi
mov ecx, 3
call fcn.100037ee8
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x70]
call fcn.10003861c
nop
jmp 0x100036d64
test r12d, 0xffffffd9
je 0x100036bfe
lea rdx, [0x10000bd18]
mov ecx, 3
call fcn.100037e18
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x70]
call fcn.10003861c
nop
mov edi, 0x57
jmp 0x100036d64
cmp rbp, rsi
je 0x100036c9b
mov rcx, qword [rbp]
cmp rcx, rsi
je 0x100036c69
cmp qword [rbp + 0x10], rsi
je 0x100036c69
cmp qword [rbp + 0x18], rsi
je 0x100036c69
cmp qword [rbp + 8], rsi
je 0x100036c69
lea rdi, [0x100008b20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, esi
je 0x100036c69
mov rdx, rdi
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, esi
je 0x100036c69
mov rdx, rdi
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, esi
je 0x100036c69
mov rdx, rdi
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, esi
jne 0x100036c9b
lea rdx, [0x10000c260]
mov ecx, 3
call fcn.100037e18
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x70]
call fcn.10003861c
nop
mov edi, 0x57
jmp 0x100036d64
call fcn.1000305b8
cmp eax, esi
jne 0x100036cd6
lea rdx, [0x10000bd40]
mov ecx, 3
call fcn.100037e18
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x70]
call fcn.10003861c
nop
mov edi, 5
jmp 0x100036d64
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.1000386e0
mov edi, eax
cmp eax, esi
je 0x100036d1a
mov r9, rbx
lea r8, [0x10000b9e0]
mov edx, eax
mov ecx, 3
call fcn.100037ee8
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x70]
call fcn.10003861c
nop
jmp 0x100036d64
mov edi, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
cmp qword [rsp + 0x78], rsi
cmovne edi, dword [rsp + 0x1c8]
lea rcx, [rsp + 0x70]
call fcn.1000385e0
cmp edi, 6
je 0x100036d75
mov r9, r13
mov r8, rbp
mov edx, r12d
mov rcx, rbx
call fcn.100036044
mov edi, eax
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x70]
call fcn.10003861c
nop
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
mov eax, edi
jmp 0x10003711c
lea rax, [rsp + 0x200]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x200]
call fcn.10001e09c
nop
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1000459a0
mov esi, eax
test eax, eax
jne 0x100036fb3
test r12b, 2
je 0x100036dbe
xor ecx, ecx
call fcn.100045390
mov r14d, eax
jmp 0x100036dcb
mov ecx, 1
call fcn.100045390
mov r14d, eax
mov eax, r12d
shr eax, 2
shr r12d, 5
and r12d, 1
and eax, 1
jne 0x100036ef5
test rbp, rbp
je 0x100036e77
lea rax, [rsp + 0x200]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x48], rax
mov rdx, qword [rbp + 8]
lea rcx, [rsp + 0x200]
call fcn.10001e134
mov rsi, rax
mov rdx, qword [rbp]
lea rcx, [rsp + 0x40]
call fcn.10001e134
mov rdi, rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.10001e09c
nop
lea r9, [rsp + 0x38]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.100040110
mov esi, eax
test eax, eax
je 0x100036e77
mov r9, rbx
mov r8, qword [rbp]
lea rdx, [0x10000d090]
mov ecx, 3
call fcn.100037e18
jmp 0x100036fd5
mov r15d, 1
and dword [rsp + 0x200], 0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.10001e09c
nop
lea rdx, [rsp + 0x200]
mov rcx, rax
call fcn.100040408
mov esi, eax
test eax, eax
je 0x100036ecd
mov r8, rbx
lea rdx, [0x10000d120]
lea ecx, [r15 + 2]
call fcn.100037e18
jmp 0x100036fd5
cmp dword [rsp + 0x200], 0
je 0x100036ef5
mov r8, rbx
lea rdx, [0x10000ccd0]
mov ecx, 1
call fcn.100037e18
mov esi, 0xe0000300
jmp 0x1000370b8
mov r8, rbx
lea rdx, [0x10000cd60]
mov ecx, 1
call fcn.100037e18
mov r8, r13
mov edx, r12d
lea rcx, [rsp + 0x20]
call fcn.1000464e0
mov esi, eax
test eax, eax
je 0x100036f57
cmp eax, 0xe000023c
jne 0x100036f3f
mov r8, rbx
lea rdx, [0x10000d1d0]
mov ecx, 3
call fcn.100037e18
jmp 0x100036ff8
mov r9, rbx
lea r8, [0x10000d230]
mov edx, eax
mov ecx, 3
call fcn.100037ee8
jmp 0x100036fd5
lea rax, [rsp + 0x200]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x200]
call fcn.10001e09c
nop
mov rcx, rax
call fcn.100040580
test eax, eax
je 0x100036f9b
mov r8, qword [rsp + 0x20]
lea rdx, [0x10000ca00]
mov ecx, 3
call fcn.100037e18
jmp 0x100036fd9
mov r8, qword [rsp + 0x20]
lea rdx, [0x10000ca80]
mov ecx, 1
call fcn.100037e18
jmp 0x100036fd9
mov edx, 0x490
cmp eax, edx
jne 0x100036fd5
mov r9, rbx
lea r8, [0x10000d040]
mov ecx, 1
call fcn.100037ee8
mov esi, 0xe0000302
test esi, esi
jne 0x100036fec
lea rdx, [0x10000cee8]
xor ecx, ecx
call fcn.100037e18
jmp 0x1000370b8
cmp esi, 0xe0000300
je 0x1000370b8
test r15d, r15d
je 0x1000370b8
test rbp, rbp
je 0x1000370b8
cmp dword [rsp + 0x38], 0
jne 0x1000370b8
lea rax, [rsp + 0x28]
mov qword [rsp + 0x200], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rdx, qword [rbp + 8]
lea rcx, [rsp + 0x28]
call fcn.10001e134
mov rdi, rax
mov rdx, qword [rbp]
lea rcx, [rsp + 0x40]
call fcn.10001e134
mov rbx, rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.10001e09c
nop
lea r9, [rsp + 0x200]
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call fcn.10003fe1c
test eax, eax
je 0x10003709e
mov r9, qword [rsp + 0x20]
mov r8, qword [rbp]
lea rdx, [0x10000cf20]
mov ecx, 3
call fcn.100037e18
jmp 0x1000370b8
mov r9, qword [rsp + 0x20]
mov r8, qword [rbp]
lea rdx, [0x10000cfb0]
mov ecx, 1
call fcn.100037e18
mov ecx, r14d
call fcn.100045390
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x70]
call fcn.10003861c
nop
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
mov eax, esi
jmp 0x10003711c
lea rdx, [0x10000b960]
mov ecx, 3
call fcn.100037e18
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x70]
call fcn.10003861c
nop
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
mov eax, 0x57
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret