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

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x1d0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov esi, edx
mov rbx, rcx
lea rcx, [rax + 0x18]
call fcn.100020360
nop
lea rcx, [rsp + 0x70]
call fcn.100055970
nop
lea rcx, [rsp + 0x28]
call fcn.10003cdb4
nop
lea rcx, [rsp + 0x1f0]
call fcn.100020360
nop
test rbx, rbx
jne 0x10003751a
lea rdx, [0x10000c360]
lea ecx, [rbx + 3]
call fcn.100054fd8
nop
lea rcx, [rsp + 0x1f0]
call fcn.10002006c
nop
lea rcx, [rsp + 0x28]
call fcn.10003ce68
nop
lea rcx, [rsp + 0x70]
call fcn.100055cd4
nop
lea edi, [rbx + 0x57]
jmp 0x10003789b
mov eax, 0x7fff
mov rcx, rbx
cmp word [rcx], 0
je 0x100037532
add rcx, 2
sub rax, 1
jne 0x100037522
test rax, rax
jne 0x100037575
lea rdx, [0x10000c3c0]
lea ecx, [rax + 3]
call fcn.100054fd8
nop
lea rcx, [rsp + 0x1f0]
call fcn.10002006c
nop
lea rcx, [rsp + 0x28]
call fcn.10003ce68
nop
lea rcx, [rsp + 0x70]
call fcn.100055cd4
nop
mov edi, 0xce
jmp 0x10003789b
lea rax, [rsp + 0x208]
mov qword [rsp + 0x20], rax
mov rdx, rbx
lea rcx, [rsp + 0x208]
call fcn.100020428
nop
xor r8d, r8d
lea rdx, [rsp + 0x200]
mov rcx, rax
call fcn.100034be4
mov edi, eax
test eax, eax
je 0x1000375ec
mov r9, rbx
lea r8, [0x10000c410]
mov edx, eax
mov ecx, 3
call fcn.1000550a8
nop
lea rcx, [rsp + 0x1f0]
call fcn.10002006c
nop
lea rcx, [rsp + 0x28]
call fcn.10003ce68
nop
lea rcx, [rsp + 0x70]
call fcn.100055cd4
nop
jmp 0x10003789b
mov rbx, qword [rsp + 0x200]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x10003760e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100037614
shr edi, 3
and edi, 2
test edi, edi
je 0x100037658
mov r9, rbx
lea r8, [0x10000c458]
mov edx, edi
mov ecx, 3
call fcn.1000550a8
nop
lea rcx, [rsp + 0x1f0]
call fcn.10002006c
nop
lea rcx, [rsp + 0x28]
call fcn.10003ce68
nop
lea rcx, [rsp + 0x70]
call fcn.100055cd4
nop
jmp 0x10003789b
test esi, 0xffffffe0
je 0x1000376a0
lea rdx, [0x10000c488]
mov ecx, 3
call fcn.100054fd8
nop
lea rcx, [rsp + 0x1f0]
call fcn.10002006c
nop
lea rcx, [rsp + 0x28]
call fcn.10003ce68
nop
lea rcx, [rsp + 0x70]
call fcn.100055cd4
nop
mov edi, 0x57
jmp 0x10003789b
call fcn.1000338d4
test eax, eax
jne 0x1000376e7
lea rdx, [0x10000c4b0]
lea ecx, [rax + 3]
call fcn.100054fd8
nop
lea rcx, [rsp + 0x1f0]
call fcn.10002006c
nop
lea rcx, [rsp + 0x28]
call fcn.10003ce68
nop
lea rcx, [rsp + 0x70]
call fcn.100055cd4
nop
mov edi, 5
jmp 0x10003789b
lea rax, [rsp + 0x208]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0x208]
call fcn.100020390
nop
lea rdx, [rsp + 0x1f0]
mov rcx, rax
call fcn.10003bc38
test eax, eax
je 0x1000377e1
cmp eax, 0x34
jne 0x1000377a6
test sil, 1
je 0x10003776b
lea rdx, [0x10000c510]
lea ecx, [rax - 0x31]
call fcn.100054fd8
nop
lea rcx, [rsp + 0x1f0]
call fcn.10002006c
nop
lea rcx, [rsp + 0x28]
call fcn.10003ce68
nop
lea rcx, [rsp + 0x70]
call fcn.100055cd4
nop
mov edi, 0x780
jmp 0x10003789b
mov r9, qword [rsp + 0x1f0]
mov r8, rbx
lea rdx, [0x10000c590]
mov ecx, 1
call fcn.100054fd8
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0x200]
call fcn.10001f050
mov rbx, qword [rsp + 0x200]
jmp 0x1000377e1
lea rcx, [rsp + 0x1f0]
call fcn.10002006c
nop
lea rcx, [rsp + 0x28]
call fcn.10003ce68
nop
lea rcx, [rsp + 0x70]
call fcn.100055cd4
nop
lea rcx, [rsp + 0x200]
call fcn.10002006c
mov eax, 0x780
jmp 0x1000379c7
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0x70]
call fcn.100055f34
mov edi, eax
test eax, eax
je 0x100037836
mov r9, rbx
lea r8, [0x10000c150]
mov edx, eax
mov ecx, 3
call fcn.1000550a8
nop
lea rcx, [rsp + 0x1f0]
call fcn.10002006c
nop
lea rcx, [rsp + 0x28]
call fcn.10003ce68
nop
lea rcx, [rsp + 0x70]
call fcn.100055cd4
nop
jmp 0x10003789b
mov ebx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov eax, ebx
mov rcx, qword [rsp + 0x78]
test rcx, rcx
cmovne eax, dword [rsp + 0x1c8]
cmp eax, 6
je 0x1000378af
test rcx, rcx
cmovne ebx, dword [rsp + 0x1c8]
mov r8d, ebx
lea rdx, [0x10000c600]
mov ecx, 3
call fcn.100054fd8
nop
lea rcx, [rsp + 0x1f0]
call fcn.10002006c
nop
lea rcx, [rsp + 0x28]
call fcn.10003ce68
nop
lea rcx, [rsp + 0x70]
call fcn.100055cd4
nop
mov edi, 1
lea rcx, [rsp + 0x200]
call fcn.10002006c
mov eax, edi
jmp 0x1000379c7
test sil, 2
je 0x1000378c0
xor ecx, ecx
call fcn.1000634e0
mov edi, eax
jmp 0x1000378cc
mov ecx, 1
call fcn.1000634e0
mov edi, eax
test sil, 8
je 0x10003792c
cmp qword [rsp + 0x78], 0
cmovne ebx, dword [rsp + 0x1c8]
cmp ebx, 6
jne 0x100037923
lea rax, [rsp + 0x208]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0x208]
call fcn.100020390
nop
mov rcx, rax
call fcn.100050360
mov ebx, eax
cmp eax, 0x103
jne 0x100037928
test sil, 4
je 0x10003798c
xor ebx, ebx
jmp 0x100037928
mov ebx, 1
test ebx, ebx
jne 0x10003798c
test sil, 0x10
mov eax, 3
lea r8d, [rax - 3]
cmove r8d, eax
test sil, 1
je 0x100037959
lea r9, [rsp + 0x28]
lea edx, [rax + 3]
lea rcx, [rsp + 0x70]
call fcn.10005d374
mov ebx, eax
jmp 0x10003796f
lea r9, [rsp + 0x28]
mov edx, 4
lea rcx, [rsp + 0x70]
call fcn.10005d374
mov ebx, eax
test ebx, ebx
je 0x10003797b
cmp ebx, 0xb7
jne 0x10003798c
cmp dword [rsp + 0x50], 0
je 0x10003798c
lea rcx, [rsp + 0x28]
call fcn.10003d1ac
mov ecx, edi
call fcn.1000634e0
nop
lea rcx, [rsp + 0x1f0]
call fcn.10002006c
nop
lea rcx, [rsp + 0x28]
call fcn.10003ce68
nop
lea rcx, [rsp + 0x70]
call fcn.100055cd4
nop
lea rcx, [rsp + 0x200]
call fcn.10002006c
mov eax, ebx
add rsp, 0x1d0
pop rdi
pop rsi
pop rbx
ret