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

Disassembly:
push rbx
push rsi
push rdi
mov rax, rsp
sub rsp, 0x1d0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov esi, edx
mov rbx, rcx
lea rcx, [rax + 0x30]
call fcn.10001fee0
nop
lea rcx, [rsp + 0x70]
call fcn.10003cea0
nop
lea rcx, [rsp + 0x28]
call fcn.100044f88
nop
lea rcx, [rsp + 0x1f0]
call fcn.10001fee0
nop
test rbx, rbx
jne 0x10003720b
lea rdx, [0x10000c050]
lea ecx, [rbx + 3]
call fcn.10003c3c0
nop
lea rcx, [rsp + 0x1f0]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x28]
call fcn.10004504c
nop
lea rcx, [rsp + 0x70]
call fcn.10003d21c
nop
lea edi, [rbx + 0x57]
jmp 0x10003758c
mov eax, 0x7fff
mov rcx, rbx
cmp word [rcx], 0
je 0x100037223
add rcx, 2
sub rax, 1
jne 0x100037213
test rax, rax
jne 0x100037266
lea rdx, [0x10000c0b0]
lea ecx, [rax + 3]
call fcn.10003c3c0
nop
lea rcx, [rsp + 0x1f0]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x28]
call fcn.10004504c
nop
lea rcx, [rsp + 0x70]
call fcn.10003d21c
nop
mov edi, 0xce
jmp 0x10003758c
lea rax, [rsp + 0x208]
mov qword [rsp + 0x20], rax
mov rdx, rbx
lea rcx, [rsp + 0x208]
call fcn.10001ff98
nop
xor r8d, r8d
lea rdx, [rsp + 0x200]
mov rcx, rax
call fcn.1000349f8
mov edi, eax
test eax, eax
je 0x1000372dd
mov r9, rbx
lea r8, [0x10000c100]
mov edx, eax
mov ecx, 3
call fcn.10003c494
nop
lea rcx, [rsp + 0x1f0]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x28]
call fcn.10004504c
nop
lea rcx, [rsp + 0x70]
call fcn.10003d21c
nop
jmp 0x10003758c
mov rbx, qword [rsp + 0x200]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1000372ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100037305
shr edi, 3
and edi, 2
test edi, edi
je 0x100037349
mov r9, rbx
lea r8, [0x10000c148]
mov edx, edi
mov ecx, 3
call fcn.10003c494
nop
lea rcx, [rsp + 0x1f0]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x28]
call fcn.10004504c
nop
lea rcx, [rsp + 0x70]
call fcn.10003d21c
nop
jmp 0x10003758c
test esi, 0xffffffe0
je 0x100037391
lea rdx, [0x10000c178]
mov ecx, 3
call fcn.10003c3c0
nop
lea rcx, [rsp + 0x1f0]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x28]
call fcn.10004504c
nop
lea rcx, [rsp + 0x70]
call fcn.10003d21c
nop
mov edi, 0x57
jmp 0x10003758c
call fcn.100033614
test eax, eax
jne 0x1000373d8
lea rdx, [0x10000c1a0]
lea ecx, [rax + 3]
call fcn.10003c3c0
nop
lea rcx, [rsp + 0x1f0]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x28]
call fcn.10004504c
nop
lea rcx, [rsp + 0x70]
call fcn.10003d21c
nop
mov edi, 5
jmp 0x10003758c
lea rax, [rsp + 0x208]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0x208]
call fcn.10001ff10
nop
lea rdx, [rsp + 0x1f0]
mov rcx, rax
call fcn.10003ba88
test eax, eax
je 0x1000374d2
cmp eax, 0x34
jne 0x100037497
test sil, 1
je 0x10003745c
lea rdx, [0x10000c200]
lea ecx, [rax - 0x31]
call fcn.10003c3c0
nop
lea rcx, [rsp + 0x1f0]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x28]
call fcn.10004504c
nop
lea rcx, [rsp + 0x70]
call fcn.10003d21c
nop
mov edi, 0x780
jmp 0x10003758c
mov r9, qword [rsp + 0x1f0]
mov r8, rbx
lea rdx, [0x10000c280]
mov ecx, 1
call fcn.10003c3c0
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0x200]
call fcn.10001ecdc
mov rbx, qword [rsp + 0x200]
jmp 0x1000374d2
lea rcx, [rsp + 0x1f0]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x28]
call fcn.10004504c
nop
lea rcx, [rsp + 0x70]
call fcn.10003d21c
nop
lea rcx, [rsp + 0x200]
call fcn.10001fba0
mov eax, 0x780
jmp 0x1000376b8
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0x70]
call fcn.10003d47c
mov edi, eax
test eax, eax
je 0x100037527
mov r9, rbx
lea r8, [0x10000be40]
mov edx, eax
mov ecx, 3
call fcn.10003c494
nop
lea rcx, [rsp + 0x1f0]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x28]
call fcn.10004504c
nop
lea rcx, [rsp + 0x70]
call fcn.10003d21c
nop
jmp 0x10003758c
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 0x1000375a0
test rcx, rcx
cmovne ebx, dword [rsp + 0x1c8]
mov r8d, ebx
lea rdx, [0x10000c2f0]
mov ecx, 3
call fcn.10003c3c0
nop
lea rcx, [rsp + 0x1f0]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x28]
call fcn.10004504c
nop
lea rcx, [rsp + 0x70]
call fcn.10003d21c
nop
mov edi, 1
lea rcx, [rsp + 0x200]
call fcn.10001fba0
mov eax, edi
jmp 0x1000376b8
test sil, 2
je 0x1000375b1
xor ecx, ecx
call fcn.10004e368
mov edi, eax
jmp 0x1000375bd
mov ecx, 1
call fcn.10004e368
mov edi, eax
test sil, 8
je 0x10003761d
cmp qword [rsp + 0x78], 0
cmovne ebx, dword [rsp + 0x1c8]
cmp ebx, 6
jne 0x100037614
lea rax, [rsp + 0x208]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0x208]
call fcn.10001ff10
nop
mov rcx, rax
call fcn.10004f010
mov ebx, eax
cmp eax, 0x103
jne 0x100037619
test sil, 4
je 0x10003767d
xor ebx, ebx
jmp 0x100037619
mov ebx, 1
test ebx, ebx
jne 0x10003767d
test sil, 0x10
mov eax, 3
lea r8d, [rax - 3]
cmove r8d, eax
test sil, 1
je 0x10003764a
lea r9, [rsp + 0x28]
lea edx, [rax + 3]
lea rcx, [rsp + 0x70]
call fcn.1000484c0
mov ebx, eax
jmp 0x100037660
lea r9, [rsp + 0x28]
mov edx, 4
lea rcx, [rsp + 0x70]
call fcn.1000484c0
mov ebx, eax
test ebx, ebx
je 0x10003766c
cmp ebx, 0xb7
jne 0x10003767d
cmp dword [rsp + 0x50], 0
je 0x10003767d
lea rcx, [rsp + 0x28]
call fcn.100045390
mov ecx, edi
call fcn.10004e368
nop
lea rcx, [rsp + 0x1f0]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x28]
call fcn.10004504c
nop
lea rcx, [rsp + 0x70]
call fcn.10003d21c
nop
lea rcx, [rsp + 0x200]
call fcn.10001fba0
mov eax, ebx
add rsp, 0x1d0
pop rdi
pop rsi
pop rbx
ret