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

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov qword [rsp + 0x108], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r14, r9
mov r13, r8
mov r15d, edx
mov rbx, rcx
mov r12d, 0x643
lea rcx, [rsp + 0x38]
call fcn.10001e06c
nop
lea rcx, [rsp + 0x110]
call fcn.10003845c
nop
lea rcx, [rsp + 0x60]
call fcn.10003df74
nop
lea rcx, [rsp + 0x30]
call fcn.10001e06c
nop
xor edi, edi
mov dword [rsp + 0x2a0], edi
mov dword [rsp + 0x58], 1
lea rcx, [rsp + 0x28]
call fcn.10001e06c
nop
lea rcx, [rsp + 0x20]
call fcn.10001e06c
nop
cmp rbx, rdi
je 0x1000369bc
cmp r14, rdi
je 0x1000369bc
mov dword [r14], edi
mov ecx, 0x7fff
mov rax, rbx
cmp word [rax], di
je 0x1000360ff
add rax, 2
sub rcx, 1
jne 0x1000360f0
cmp rcx, rdi
jne 0x10003615a
lea rdx, [0x10000bc50]
mov ecx, 3
call fcn.100037e18
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x28]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x60]
call fcn.10003dfc8
nop
lea rcx, [rsp + 0x110]
call fcn.10003861c
nop
mov esi, 0xce
jmp 0x1000364e3
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.10001e134
nop
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.10003171c
mov esi, eax
cmp eax, edi
je 0x1000361de
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 + 0x28]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x60]
call fcn.10003dfc8
nop
lea rcx, [rsp + 0x110]
call fcn.10003861c
nop
jmp 0x1000364e3
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
jne 0x1000361fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100036203
shr esi, 3
and esi, 2
cmp esi, edi
je 0x10003625d
mov r9, rbx
lea r8, [0x10000bce8]
mov edx, esi
mov ecx, 3
call fcn.100037ee8
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x28]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x60]
call fcn.10003dfc8
nop
lea rcx, [rsp + 0x110]
call fcn.10003861c
nop
jmp 0x1000364e3
test r15d, 0xffffffd9
je 0x1000362bc
lea rdx, [0x10000bd18]
mov ecx, 3
call fcn.100037e18
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x28]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x60]
call fcn.10003dfc8
nop
lea rcx, [rsp + 0x110]
call fcn.10003861c
nop
mov esi, 0x57
jmp 0x1000364e3
cmp r13, rdi
je 0x10003637d
mov rcx, qword [r13]
cmp rcx, rdi
je 0x100036327
cmp qword [r13 + 0x10], rdi
je 0x100036327
cmp qword [r13 + 0x18], rdi
je 0x100036327
cmp qword [r13 + 8], rdi
je 0x100036327
lea rsi, [0x100008b20]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, edi
je 0x100036327
mov rdx, rsi
mov rcx, qword [r13 + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, edi
je 0x100036327
mov rdx, rsi
mov rcx, qword [r13 + 0x18]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, edi
je 0x100036327
mov rdx, rsi
mov rcx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, edi
jne 0x10003637d
lea rdx, [0x10000c260]
mov ecx, 3
call fcn.100037e18
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x28]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x60]
call fcn.10003dfc8
nop
lea rcx, [rsp + 0x110]
call fcn.10003861c
nop
mov esi, 0x57
jmp 0x1000364e3
call fcn.1000305b8
cmp eax, edi
jne 0x1000363dc
lea rdx, [0x10000c170]
mov ecx, 3
call fcn.100037e18
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x28]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x60]
call fcn.10003dfc8
nop
lea rcx, [rsp + 0x110]
call fcn.10003861c
nop
mov esi, 5
jmp 0x1000364e3
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.10001e09c
nop
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.100037414
cmp eax, edi
je 0x10003647a
cmp eax, 0x34
jne 0x100036439
mov r9, qword [rsp + 0x28]
mov r8, rbx
lea rdx, [0x10000be20]
lea ecx, [rax - 0x33]
call fcn.100037e18
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.10001e1c8
mov rbx, qword [rsp + 0x38]
jmp 0x10003647a
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x28]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x60]
call fcn.10003dfc8
nop
lea rcx, [rsp + 0x110]
call fcn.10003861c
nop
mov esi, 0xe0000302
jmp 0x1000364e3
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x110]
call fcn.1000386e0
mov esi, eax
cmp eax, edi
je 0x1000364f4
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 + 0x28]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x60]
call fcn.10003dfc8
nop
lea rcx, [rsp + 0x110]
call fcn.10003861c
nop
lea rcx, [rsp + 0x38]
call fcn.10001f3ec
mov eax, esi
jmp 0x100036a17
test r15b, 2
je 0x100036507
xor ecx, ecx
call fcn.100045390
mov dword [rsp + 0x48], eax
jmp 0x100036515
mov ecx, 1
call fcn.100045390
mov dword [rsp + 0x48], eax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea edx, [r8 + 3]
lea rcx, [rsp + 0x110]
call fcn.1000406c4
mov edi, eax
cmp eax, 0xb7
jne 0x100036870
lea rax, [rsp + 0x20]
test rax, rax
jne 0x100036550
lea ecx, [rdi - 0x60]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100036568
lea r8, [rsp + 0x20]
mov edx, 2
lea rcx, [rsp + 0x60]
call fcn.10003e3c8
test eax, eax
jne 0x100036581
mov r8, rbx
lea rdx, [0x10000cb60]
mov ecx, 3
call fcn.100037e18
jmp 0x1000368d3
mov edi, r15d
shr edi, 2
and edi, 1
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x60]
call fcn.10003e358
test eax, eax
jne 0x1000365b7
mov r8, rbx
lea rdx, [0x10000cbe0]
lea ecx, [rax + 3]
call fcn.100037e18
jmp 0x1000368d3
test edi, edi
jne 0x10003674a
lea rcx, [rsp + 0xa8]
call fcn.100018ee8
nop
lea rax, [rsp + 0xa8]
lea esi, [rdi + 0x57]
test rax, rax
jne 0x1000365e7
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000365fe
lea r8, [rsp + 0xa8]
mov edx, 9
lea rcx, [rsp + 0x60]
call fcn.10003e708
test r13, r13
je 0x1000366ae
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rdx, qword [r13]
lea rcx, [rsp + 0x50]
call fcn.10001e134
nop
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.100032ac4
test eax, eax
jne 0x10003663a
and dword [rsp + 0x58], eax
jmp 0x1000366ae
lea rax, [rsp + 0x50]
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0xa0], rax
mov rdx, qword [r13 + 8]
lea rcx, [rsp + 0x50]
call fcn.10001e134
mov rdi, rax
mov rdx, qword [r13]
lea rcx, [rsp + 0x40]
call fcn.10001e134
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.10003f4b0
test eax, eax
jne 0x1000366ae
mov r8, qword [r13]
lea rdx, [0x10000cc50]
lea ecx, [rax + 3]
call fcn.100037e18
nop
lea rcx, [rsp + 0xa8]
call fcn.10001a784
jmp 0x1000368d3
lea rcx, [rsp + 0xd8]
call fcn.100018ee8
nop
lea rax, [rsp + 0xd8]
test rax, rax
jne 0x1000366d3
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000366ea
lea r8, [rsp + 0xd8]
mov edx, 9
lea rcx, [rsp + 0x60]
call fcn.10003e708
cmp qword [rsp + 0xe8], 0
je 0x10003672f
mov r8, rbx
lea rdx, [0x10000ccd0]
mov ecx, 1
call fcn.100037e18
mov r12d, 0xe0000300
lea rcx, [rsp + 0xd8]
call fcn.10001a784
nop
lea rcx, [rsp + 0xa8]
call fcn.10001a784
jmp 0x100036969
lea rcx, [rsp + 0xd8]
call fcn.10001a784
nop
lea rcx, [rsp + 0xa8]
call fcn.10001a784
mov r8, rbx
lea rdx, [0x10000cd60]
mov ecx, 1
call fcn.100037e18
mov edx, dword [rsp + 0x2a0]
cmp edx, 1
je 0x1000367e5
cmp edx, 2
je 0x1000367e5
cmp edx, 3
je 0x1000367e5
cmp edx, 4
je 0x1000367e5
mov esi, 5
cmp edx, esi
je 0x1000367d3
cmp edx, 9
je 0x1000367d3
cmp edx, 0xb
jne 0x10003679e
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.10005348c
mov r12d, eax
jmp 0x1000367f5
cmp edx, 6
jne 0x1000367b7
mov r8, r14
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.1000464e0
mov r12d, eax
jmp 0x1000367f5
cmp edx, 7
je 0x1000367c1
cmp edx, 8
jne 0x1000367fa
mov r8, r14
lea rcx, [rsp + 0x60]
call fcn.100055c78
mov r12d, eax
jmp 0x1000367f5
mov r8, r14
lea rcx, [rsp + 0x60]
call fcn.100052e24
mov r12d, eax
jmp 0x1000367f5
mov r8, r14
lea rcx, [rsp + 0x60]
call fcn.10004c94c
mov r12d, eax
test r12d, r12d
je 0x100036813
mov r8, rbx
lea rdx, [0x10000cdb0]
mov ecx, 3
call fcn.100037e18
jmp 0x1000368ae
test r15b, 0x20
je 0x100036834
lea rdx, [0x10000ce20]
mov ecx, 1
call fcn.100037e18
lea rcx, [rsp + 0x20]
call fcn.100037538
lea rcx, [rsp + 0x60]
call fcn.10003e2ec
test eax, eax
jne 0x100036858
mov r8, qword [rsp + 0x20]
lea rdx, [0x10000cea0]
lea ecx, [rax + 1]
call fcn.100037e18
jmp 0x1000368b3
mov r8, qword [rsp + 0x20]
lea rdx, [0x10000c760]
mov ecx, 3
call fcn.100037e18
jmp 0x1000368b3
mov esi, 0xe0000302
cmp eax, esi
jne 0x100036894
mov r9, rbx
lea r8, [0x10000c210]
mov edx, esi
mov ecx, 1
call fcn.100037ee8
mov r12d, esi
jmp 0x1000368d3
mov r9, rbx
lea r8, [0x10000cb00]
mov edx, r12d
mov ecx, 3
call fcn.100037ee8
mov r12d, edi
test r12d, r12d
jne 0x1000368c6
lea rdx, [0x10000cee8]
xor ecx, ecx
call fcn.100037e18
jmp 0x100036969
cmp r12d, 0xe0000300
je 0x100036969
test r13, r13
je 0x100036969
cmp dword [rsp + 0x58], 0
je 0x100036969
lea rax, [rsp + 0x40]
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x98], rax
mov rdx, qword [r13 + 8]
lea rcx, [rsp + 0x40]
call fcn.10001e134
mov rbx, rax
mov rdx, qword [r13]
lea rcx, [rsp + 0x50]
call fcn.10001e134
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.10003f2cc
test eax, eax
jne 0x10003694f
mov r9, qword [rsp + 0x30]
mov r8, qword [r13]
lea rdx, [0x10000cf20]
lea ecx, [rax + 3]
call fcn.100037e18
jmp 0x100036969
mov r9, qword [rsp + 0x30]
mov r8, qword [r13]
lea rdx, [0x10000cfb0]
mov ecx, 1
call fcn.100037e18
mov ecx, dword [rsp + 0x48]
call fcn.100045390
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x28]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x60]
call fcn.10003dfc8
nop
lea rcx, [rsp + 0x110]
call fcn.10003861c
nop
lea rcx, [rsp + 0x38]
call fcn.10001f3ec
mov eax, r12d
jmp 0x100036a17
lea rdx, [0x10000b960]
mov ecx, 3
call fcn.100037e18
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x28]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x60]
call fcn.10003dfc8
nop
lea rcx, [rsp + 0x110]
call fcn.10003861c
nop
lea rcx, [rsp + 0x38]
call fcn.10001f3ec
mov eax, 0x57
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret