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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1004f46d
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x10018743
or eax, 0xffffffff
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, edi
lea ecx, [esp + 0x70]
call fcn.10006480
push 0x2e
push edi
mov dword [esp + 0xb4], 0
call dword [sym.imp.MSVCR120.dll_wcsrchr]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 8
test eax, eax
je 0x10018798
push 0x100539bc
push eax
call dword [sym.imp.MSVCR120.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x10018798
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call sym.KwLib.dll_int___cdecl_Music_Export_wchar_t_const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____unsigned_long_int_
add esp, 0xc
mov edi, eax
jmp 0x100189f1
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x40]
push 0x100539d0
mov edx, ebx
call fcn.10006020
lea ecx, [esp + 0x74]
mov byte [esp + 0xb0], 1
push ecx
mov edx, eax
lea ecx, [esp + 0x14]
call fcn.100062b0
add esp, 8
mov byte [esp + 0xac], 3
cmp dword [esp + 0x54], 8
jb 0x100187de
push dword [esp + 0x40]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x54], 7
mov word [esp + 0x40], ax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x50], 0
test al, 1
je 0x10018817
lea ecx, [esp + 0xc]
call fcn.10006330
test al, al
je 0x1001898b
mov edi, 0x11
jmp 0x100189ca
test al, 4
je 0x1001898b
mov dword [esp + 0x24], 0
jmp 0x10018830
cmp dword [esp + 0x20], 8
lea edi, [esp + 0xc]
cmovae edi, dword [esp + 0xc]
cmp dword [0x1006e3e8], 0xffffffff
jne 0x1001887a
lea eax, [esp + 0x28]
push eax
push 0xd698
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x10018870
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1006e3e8], 0x3a8
cmp eax, 0x57
je 0x1001887a
mov dword [0x1006e3e8], 0xd698
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10018988
mov eax, dword [esp + 0x24]
inc eax
push eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x8c]
push 0x100539d4
push eax
call fcn.10006390
push eax
mov edx, ebx
mov byte [esp + 0xbc], 4
lea ecx, [esp + 0x68]
call fcn.10006400
lea ecx, [esp + 0x80]
mov byte [esp + 0xbc], 5
push ecx
mov edx, eax
lea ecx, [esp + 0x3c]
call fcn.100062b0
mov edi, eax
add esp, 0x14
lea eax, [esp + 0xc]
cmp eax, edi
je 0x10018913
cmp dword [esp + 0x20], 8
jb 0x100188f2
push dword [esp + 0xc]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
call fcn.100023f0
cmp dword [esp + 0x3c], 8
jb 0x10018923
push dword [esp + 0x28]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
cmp dword [esp + 0x6c], 8
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
jb 0x1001894a
push dword [esp + 0x58]
call esi
add esp, 4
xor eax, eax
mov byte [esp + 0xac], 3
cmp dword [esp + 0x9c], 8
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
jb 0x10018830
push dword [esp + 0x88]
call esi
add esp, 4
jmp 0x10018830
mov edi, dword [ebp + 8]
lea eax, [esp + 0xc]
cmp ebx, eax
je 0x1001899f
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.10002450
cmp dword [ebx + 0x14], 8
jb 0x100189a7
mov ebx, dword [ebx]
push ecx
mov edx, ebx
mov ecx, edi
call fcn.100064e0
add esp, 4
test al, al
jne 0x100189c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
or edi, 0xffffffff
test eax, eax
cmovne edi, eax
jmp 0x100189ca
xor edi, edi
cmp dword [esp + 0x20], 8
jb 0x100189da
push dword [esp + 0xc]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
cmp dword [esp + 0x84], 8
jb 0x10018a04
push dword [esp + 0x70]
call esi
add esp, 4
mov ecx, dword [esp + 0xa4]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret