Function at 0x418960
Capabilities:
Check if file exists
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x138
mov esi, esp
mov dword [esi + 0x120], ebp
mov ebx, edx
mov dword [esi + 0x124], esp
mov dword [esi + 0x130], 0xffffffff
lea eax, [esi + 0x128]
mov dword [esi + 0x12c], 0x438950
mov edx, dword fs:[0]
mov dword [esi + 0x128], edx
mov dword fs:[0], eax
xor eax, eax
test ecx, ecx
je 0x419127
call fcn.004198b0
test eax, eax
je 0x418d7c
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418d83
mov dword [esi + 4], ebx
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], 0x473094
mov dword [esi + 0xd0], 0
mov dword [esi + 0xd4], 0
mov byte [esi + 0xd8], 0
mov dword [esi + 0x98], 0x4730a4
mov dword [esi + 0x94], 0x58
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0xc8], 0
movaps xmm0, xmmword [0x471480]
movups xmmword [esi + 0xa0], xmm0
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb0], 6
xorps xmm0, xmm0
movups xmmword [esi + 0xb8], xmm0
mov dword [esi + 0x130], 2
push 8
call fcn.0043a224
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x130], 0
push 1
call fcn.0043a924
add esp, 4
lea ecx, [esi + 0x38]
mov edx, dword [esi]
mov dword [edx + 4], eax
mov dword [esi + 0xc8], edx
mov dword [esi + 0xd0], ecx
mov dword [esi + 0xd4], 0
mov dword [esi + 0xc], eax
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
mov dword [esi + 0x130], 5
lea eax, [esi + 8]
push eax
call fcn.00419940
add esp, 4
mov edx, dword [eax]
mov ecx, eax
push 0x20
call dword [edx + 0x20]
mov ebx, eax
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x418ae0
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x418ae0
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov byte [esi + 0xd8], bl
cmp dword [esi + 0xd0], 0
jne 0x418b0f
mov ecx, dword [esi + 0xa4]
mov eax, dword [esi + 0xa8]
and ecx, 0x13
or ecx, 4
mov dword [esi + 0xa4], ecx
and ecx, eax
jne 0x41913c
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 4]
mov dword [esi + eax + 0x28], 0x47309c
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x70]
mov dword [esi + eax + 0x24], ecx
mov dword [esi + 0x38], 0x473160
xorps xmm0, xmm0
movups xmmword [esi + 0x3c], xmm0
movups xmmword [esi + 0x4c], xmm0
movups xmmword [esi + 0x5c], xmm0
mov dword [esi + 0x130], 2
push 8
call fcn.0043a224
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x130], 1
push 1
call fcn.0043a924
add esp, 4
lea ecx, [esi + 0x3c]
lea edx, [esi + 0x50]
mov edi, dword [esi]
mov dword [edi + 4], eax
lea eax, [esi + 0x4c]
mov dword [esi + 0x6c], edi
lea edi, [esi + 0x40]
mov dword [esi + 0x38], 0x473120
mov byte [esi + 0x80], 0
mov byte [esi + 0x75], 0
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edi
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], edx
lea eax, [esi + 0x5c]
mov dword [esi + 0x64], eax
lea eax, [esi + 0x60]
mov dword [esi + 0x68], eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x130], 3
push 0x40
push 0x25
push dword [esi + 4]
call fcn.0043aa44
add esp, 0xc
test eax, eax
je 0x418d91
mov byte [esi + 0x80], 1
mov byte [esi + 0x75], 0
lea ecx, [esi + 0x3c]
mov dword [esi + 0x44], ecx
lea ecx, [esi + 0x40]
mov dword [esi + 0x48], ecx
lea ecx, [esi + 0x4c]
mov dword [esi + 0x54], ecx
lea ecx, [esi + 0x50]
mov dword [esi + 0x58], ecx
lea ecx, [esi + 0x5c]
mov dword [esi + 0x64], ecx
lea ecx, [esi + 0x60]
mov dword [esi + 0x68], ecx
mov dword [esi + 0x40], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 8], 0
mov dword [esi + 0xe0], 0
mov dword [esi + 0x10c], 0
lea ecx, [esi + 0x10c]
lea edx, [esi + 0xe0]
push ecx
push edx
lea ebx, [esi + 8]
push ebx
push eax
mov edi, eax
call fcn.0044077f
add esp, 0x10
mov eax, dword [esi + 0x10c]
mov ecx, dword [esi + 0xe0]
mov edx, dword [esi + 8]
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], ecx
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x84], edi
mov dword [esi + 0x70], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x78], 0
mov eax, dword [esi + 0x6c]
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esi + 0x130], 4
push ebx
call fcn.00419cf0
add esp, 4
mov edi, eax
mov eax, dword [eax]
mov ecx, edi
call dword [eax + 0xc]
xor ecx, ecx
test al, al
jne 0x418d5f
lea eax, [esi + 0x3c]
mov dword [esi + 0x44], eax
lea eax, [esi + 0x40]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x4c]
mov dword [esi + 0x54], eax
lea eax, [esi + 0x50]
mov dword [esi + 0x58], eax
lea eax, [esi + 0x5c]
mov dword [esi + 0x64], eax
lea eax, [esi + 0x60]
mov dword [esi + 0x68], eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x5c], 0
mov ecx, edi
mov dword [esi + 0x70], ecx
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x418dc0
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x418dc0
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
jmp 0x418dc0
xor eax, eax
jmp 0x419127
mov ecx, edi
call fcn.00419930
xor eax, eax
jmp 0x419127
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 4]
xor ebx, ebx
cmp dword [esi + ecx + 0x60], 0
sete bl
shl ebx, 2
mov eax, dword [esi + ecx + 0x34]
mov edx, dword [esi + ecx + 0x38]
and eax, 0x15
or eax, ebx
or eax, 2
mov dword [esi + ecx + 0x34], eax
and eax, edx
jne 0x419196
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 4]
test byte [esi + eax + 0x34], 6
mov dword [esi + 0x130], 0xa
je 0x418df2
lea ecx, [esi + 0x28]
call fcn.00419f80
mov ecx, dword [esi + 0x24]
call fcn.00419930
mov dword [esi], 0
jmp 0x4190df
lea ecx, [esi + 8]
lea edx, [esi + 0x28]
call fcn.0041a030
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 4]
test byte [esi + eax + 0x34], 6
je 0x418e2a
mov dword [esi + 0xe4], 0xffffffff
mov dword [esi + 0xe0], 0xffffffff
xorps xmm0, xmm0
movups xmmword [esi + 0xe8], xmm0
jmp 0x418e57
mov ecx, dword [esi + eax + 0x60]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
mov dword [esi + 0x130], 0x12
sub esp, 0x14
movaps xmm0, xmmword [0x471490]
movups xmmword [esp + 4], xmm0
lea edx, [esi + 0xe0]
mov dword [esp], edx
call eax
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov ecx, dword [eax + ecx + 0x38]
test ecx, ecx
je 0x418e78
mov eax, dword [ecx]
mov eax, dword [eax + 8]
mov dword [esi + 0x130], 6
call eax
mov eax, dword [esi + 0xe8]
add eax, dword [esi + 0xe0]
mov ecx, dword [esi + 0xec]
adc ecx, dword [esi + 0xe4]
xor edx, edx
mov edi, 0xfff
cmp edi, eax
sbb edx, ecx
mov dword [esi + 0x130], 0xa
jl 0x418ebe
lea ecx, [esi + 0x28]
call fcn.00419f80
mov ecx, dword [esi + 0x24]
call fcn.00419930
xor eax, eax
jmp 0x4190dd
push eax
call fcn.0043a28a
add esp, 4
mov dword [esi], eax
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 4]
xor edx, edx
cmp dword [esi + ecx + 0x60], 0
mov eax, dword [esi + ecx + 0x34]
sete dl
shl edx, 2
and eax, 0x16
or eax, edx
mov dword [esi + ecx + 0x34], eax
and eax, dword [esi + ecx + 0x38]
jne 0x4191e6
lea ecx, [esi + 0xf8]
lea edx, [esi + 0x28]
call fcn.0041a030
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 4]
xor ebx, ebx
test byte [esi + eax + 0x34], 6
jne 0x418f52
mov ecx, dword [esi + eax + 0x60]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
mov dword [esi + 0x130], 0xf
sub esp, 0x14
movaps xmm0, xmmword [0x4714a0]
movups xmmword [esp + 4], xmm0
lea edx, [esi + 8]
mov dword [esp], edx
call eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
add eax, dword [esi + 8]
adc ecx, dword [esi + 0xc]
and ecx, eax
xor ebx, ebx
cmp ecx, 0xffffffff
sete bl
add ebx, ebx
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 4]
mov eax, dword [esi + ecx + 0x34]
xor edx, edx
cmp dword [esi + ecx + 0x60], 0
sete dl
shl edx, 2
and eax, 0x17
or eax, ebx
or eax, edx
mov dword [esi + ecx + 0x34], eax
and eax, dword [esi + ecx + 0x38]
jne 0x419235
mov eax, dword [esi + 0xf8]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov ecx, dword [eax + ecx + 0x38]
test ecx, ecx
je 0x418fa2
mov eax, dword [ecx]
mov eax, dword [eax + 8]
mov dword [esi + 0x130], 7
call eax
mov eax, dword [esi + 0xe8]
add eax, dword [esi + 0xe0]
mov dword [esi + 4], eax
mov eax, dword [esi + 0xec]
adc eax, dword [esi + 0xe4]
mov dword [esi + 0x100], eax
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x130], 0xa
lea ecx, [esi + 0xf8]
lea edx, [esi + 0x28]
call fcn.0041a030
xor edi, edi
cmp byte [esi + 0xfc], 0
je 0x419043
mov edx, dword [esi + 4]
cmp edx, 1
mov ebx, dword [esi + 0x100]
mov eax, ebx
sbb eax, 0
jl 0x419043
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 4]
mov ecx, dword [esi + eax + 0x60]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
mov dword [esi + 0x130], 0xc
push ebx
push edx
push dword [esi]
call eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
mov ecx, dword [esi + 4]
xor ecx, eax
mov edi, dword [esi + 0x100]
xor edi, edx
xor eax, eax
or edi, ecx
setne al
lea edi, [eax + eax*2]
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 4]
mov eax, dword [esi + ecx + 0x34]
xor edx, edx
cmp dword [esi + ecx + 0x60], 0
sete dl
shl edx, 2
and eax, 0x17
or eax, edi
or eax, edx
mov dword [esi + ecx + 0x34], eax
and eax, dword [esi + ecx + 0x38]
jne 0x419294
mov eax, dword [esi + 0xf8]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov ecx, dword [eax + ecx + 0x38]
test ecx, ecx
je 0x419093
mov eax, dword [ecx]
mov eax, dword [eax + 8]
mov dword [esi + 0x130], 8
call eax
mov dword [esi + 0x130], 0xa
lea ecx, [esi + 0x28]
call fcn.00419f80
mov edi, dword [esi + 0x24]
mov ecx, edi
mov ebx, dword [esi]
mov edx, ebx
call fcn.0041a1f0
mov byte [esi + 4], al
push ebx
call fcn.0043a293
add esp, 4
mov ecx, edi
call fcn.00419930
xor eax, eax
cmp byte [esi + 4], 0
je 0x4190dd
mov ecx, str.successful.wav
call fcn.00413c70
mov eax, 1
mov dword [esi], eax
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 4]
mov dword [esi + eax + 0x28], 0x47309c
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x70]
mov dword [esi + eax + 0x24], ecx
lea ecx, [esi + 0x38]
call fcn.00419eb0
mov dword [esi + 0x98], 0x4730a0
mov dword [esi + 0x130], 9
lea eax, [esi + 0x98]
push eax
call fcn.0043ab78
add esp, 4
mov eax, dword [esi]
mov ecx, dword [esi + 0x128]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test cl, 2
mov ecx, str.ios_base::eofbit_set
mov edx, str.ios_base::failbit_set
cmove edx, ecx
test al, 4
mov edi, str.ios_base::badbit_set
cmove edi, edx
call fcn.00419b10
mov dword [esi + 0xe0], 1
mov dword [esi + 0xe4], eax
mov dword [esi + 0x130], 2
lea eax, [esi + 0xe0]
lea ecx, [esi + 8]
push eax
push edi
call fcn.00419b70
push 0x47ccd8
lea eax, [esi + 8]
push eax
call fcn.0043c057
add esp, 8
test dl, 2
mov ecx, str.ios_base::eofbit_set
mov edx, str.ios_base::failbit_set
cmove edx, ecx
test al, 4
mov edi, str.ios_base::badbit_set
cmove edi, edx
call fcn.00419b10
mov dword [esi + 0xe0], 1
mov dword [esi + 0xe4], eax
lea eax, [esi + 0xe0]
lea ecx, [esi + 8]
push eax
push edi
call fcn.00419b70
push 0x47ccd8
lea eax, [esi + 8]
push eax
call fcn.0043c057
add esp, 8
test al, 2
mov ecx, str.ios_base::eofbit_set
mov edx, str.ios_base::failbit_set
cmove edx, ecx
test al, 4
mov edi, str.ios_base::badbit_set
cmove edi, edx
call fcn.00419b10
mov dword [esi + 0x10c], 1
mov dword [esi + 0x110], eax
lea eax, [esi + 0x10c]
lea ecx, [esi + 8]
push eax
push edi
call fcn.00419b70
push 0x47ccd8
lea eax, [esi + 8]
push eax
call fcn.0043c057
add esp, 8
test al, 2
mov ecx, str.ios_base::eofbit_set
mov edx, str.ios_base::failbit_set
cmove edx, ecx
test al, 4
mov edi, str.ios_base::badbit_set
cmove edi, edx
call fcn.00419b10
mov dword [esi + 0x104], 1
mov dword [esi + 0x108], eax
mov dword [esi + 0x130], 0xe
lea eax, [esi + 0x104]
lea ecx, [esi + 0x10c]
push eax
push edi
call fcn.00419b70
push 0x47ccd8
lea eax, [esi + 0x10c]
push eax
call fcn.0043c057
add esp, 8
test al, 2
mov ecx, str.ios_base::eofbit_set
mov edx, str.ios_base::failbit_set
cmove edx, ecx
test al, 4
mov edi, str.ios_base::badbit_set
cmove edi, edx
call fcn.00419b10
mov dword [esi + 0x104], 1
mov dword [esi + 0x108], eax
mov dword [esi + 0x130], 0xb
lea eax, [esi + 0x104]
lea ecx, [esi + 0x10c]
push eax
push edi
call fcn.00419b70
push 0x47ccd8
lea eax, [esi + 0x10c]
push eax
call fcn.0043c057
add esp, 8
lea esi, [ebp - 0x134]
mov ebp, dword [esi + 0x120]
xor ebx, ebx
jmp 0x418f52