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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bb059
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x100fbe80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x54], 0
cmp dword [esi + 0xdf4], edi
je 0x100109ae
call fcn.10010b10
mov dword [ebp - 0x58], eax
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
test eax, eax
je 0x10010390
lea ecx, [eax + 0x3a8]
push ecx
lea ecx, [ebp - 0x94]
call fcn.100109f0
mov dword [ebp - 4], 0
mov ecx, 1
jmp 0x100103a4
lea ecx, [ebp - 0x7c]
call fcn.10010b70
mov dword [ebp - 4], 1
mov ecx, 2
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
lea ecx, [ebp - 0x1c]
push eax
call fcn.100109f0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x50]
test al, 2
je 0x100103d2
and eax, 0xfffffffd
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x50], eax
call fcn.10015ba0
mov eax, dword [ebp - 0x50]
mov byte [ebp - 4], 4
test al, 1
je 0x100103e5
lea ecx, [ebp - 0x94]
call fcn.10015ba0
test edi, edi
js 0x100109a6
mov ecx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x1c]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x100109a6
lea ecx, [ebp - 0x4c]
call fcn.1006c510
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x10010970
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0xe
jb 0x100109cb
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
push 0xe
cmovae eax, dword [ebp - 0x4c]
push str.Red_Rock_Sound
push ecx
push eax
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0xd0]
call fcn.1000f590
push 1
push 0x100e1b3c
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 6
call fcn.1000c560
mov dword [ebp - 0xa8], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xb8], xmm0
mov dword [ebp - 0xa4], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xb8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xa8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 9
push 0x100e2c2c
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 7
call fcn.1000c560
mov dword [ebp - 0x78], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x74], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x88], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x78], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 1
push 0x100e1b3c
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 8
call fcn.1000c560
mov dword [ebp - 0x90], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xa0], xmm0
mov dword [ebp - 0x8c], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xa0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x90], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 9
lea ecx, [edi + edi*2]
mov eax, dword [ebp - 0x1c]
cmp dword [eax + ecx*8 + 0x14], 8
lea eax, [eax + ecx*8]
mov ecx, eax
jb 0x1001057f
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.1000c560
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x60], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x34]
call fcn.1000d8c0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x5c]
cmp ecx, 8
jb 0x10010600
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100105f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100109d0
push ecx
push edx
call fcn.10092592
add esp, 8
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x8c]
cmp ecx, 8
jb 0x10010644
mov edx, dword [ebp - 0xa0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001063a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100109d0
push ecx
push edx
call fcn.10092592
add esp, 8
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x74]
cmp ecx, 8
jb 0x100106a2
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10010698
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100109d0
push ecx
push edx
call fcn.10092592
add esp, 8
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0xa4]
cmp ecx, 8
jb 0x100106fd
mov edx, dword [ebp - 0xb8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100106f3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100109d0
push ecx
push edx
call fcn.10092592
add esp, 8
xor eax, eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0xbc]
cmp ecx, 8
jb 0x1001075e
mov edx, dword [ebp - 0xd0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10010754
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100109d0
push ecx
push edx
call fcn.10092592
add esp, 8
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov word [ebp - 0xd0], ax
mov eax, 0x7ffffffe
sub eax, ecx
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 7
cmp eax, 4
jb 0x100109d5
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 4
cmovae eax, dword [ebp - 0x34]
push str..fxp
push ecx
push eax
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0xe8]
call fcn.1000f590
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x70]
call fcn.1000d8c0
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x60], 0
jne 0x100107d2
xor al, al
jmp 0x10010805
mov edx, 0x101036d0
lea ecx, [ebp - 0x70]
call fcn.1006da20
test al, al
je 0x100107ed
lea ecx, [ebp - 0x70]
call fcn.1006c110
jmp 0x10010805
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
test al, al
mov ecx, str..rrp
mov edx, str..fxp
cmove edx, ecx
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x54], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10010820
sub ecx, dword [ebp - 0x54]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x34]
call fcn.1000c560
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x5c]
cmp ecx, 8
jb 0x10010878
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001086e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100109da
push ecx
push edx
call fcn.10092592
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp ecx, 8
jb 0x100108d0
mov edx, dword [ebp - 0xe8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100108c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100109da
push ecx
push edx
call fcn.10092592
add esp, 8
mov ecx, dword [esi + 0xf5c]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x50], 0
push eax
call fcn.10009700
cmp dword [ebp - 0x50], 0
mov dword [ebp - 0x54], eax
je 0x1001093a
test eax, eax
je 0x1001093a
mov ecx, dword [esi + 0xf5c]
mov dword [esi + 0xdf4], edi
push edi
mov eax, dword [ecx]
call dword [eax + 0x24]
mov eax, dword [esi]
mov ecx, esi
push 1
push dword [ebp - 0x54]
push dword [ebp - 0x50]
call dword [eax + 0x60]
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x1001092f
mov eax, dword [ecx + 0x390]
add ecx, 0x390
push edi
call dword [eax + 8]
push dword [ebp - 0x50]
call fcn.10092762
add esp, 4
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x10010970
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10010966
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100109df
push ecx
push edx
call fcn.10092592
add esp, 8
mov ecx, dword [ebp - 0x38]
cmp ecx, 8
jb 0x100109a6
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001099c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100109e4
push ecx
push edx
call fcn.10092592
add esp, 8
lea ecx, [ebp - 0x1c]
call fcn.10015ba0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10092561
mov esp, ebp
pop ebp
ret 4
call fcn.1000d980
call fcn.10097635
call fcn.1000d980
call fcn.10097635
call fcn.10097635
call fcn.10097635
int3