Function at 0x10014530
Capabilities:
Check if file exists
Get file attributes
Print debug messages
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
xor edi, edi
push eax
xor ebx, ebx
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call sym.vmtools.dll_DynBuf_Init
mov esi, dword [ebp + 8]
add esp, 4
cmp esi, edi
je 0x10014622
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10014566
sub eax, edx
mov edi, eax
push edi
lea ecx, [ebp - 0x18]
push esi
push ecx
call sym.vmtools.dll_DynBuf_Append
add esp, 0xc
test al, al
je 0x10014761
test edi, edi
je 0x100145ad
cmp byte [edi + esi - 1], 0x5c
je 0x100145ad
push 1
lea edx, [ebp - 0x18]
push 0x1005d980
push edx
call sym.vmtools.dll_DynBuf_Append
add esp, 0xc
test al, al
je 0x10014761
push 0xc
lea eax, [ebp - 0x18]
push str.icudt44l.dat
push eax
call sym.vmtools.dll_DynBuf_Append
add esp, 0xc
test al, al
je 0x10014761
push 1
lea ecx, [ebp - 0x18]
push 0x10063860
push ecx
call sym.vmtools.dll_DynBuf_Append
add esp, 0xc
test al, al
je 0x10014761
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10014761
test al, 0x10
jne 0x10014761
lea eax, [ebp - 0x18]
push eax
call sym.vmtools.dll_DynBuf_Detach
add esp, 4
push eax
mov dword [ebp - 0xc], eax
call fcn.10028060
add esp, 4
mov byte [0x100830c8], 0
jmp 0x10014773
push sym.vmtools.dll_CodeSet_Init
call sym.vmtools.dll_W32Util_GetModuleByAddress
add esp, 4
cmp eax, edi
je 0x10014761
push eax
call fcn.10014430
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x10014761
push 0x5c
push ebx
call dword [sym.imp.MSVCR90.dll_wcsrchr]
add esp, 8
cmp eax, edi
je 0x10014761
xor ecx, ecx
mov word [eax], cx
mov eax, ebx
lea edx, [eax + 2]
jmp 0x10014670
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10014670
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x18]
push ebx
push eax
call sym.vmtools.dll_DynBuf_Append
add esp, 0xc
test al, al
je 0x10014761
push 2
lea ecx, [ebp - 0x18]
push 0x10063ec0
push ecx
call sym.vmtools.dll_DynBuf_Append
add esp, 0xc
test al, al
je 0x10014761
push 0x18
lea edx, [ebp - 0x18]
push 0x10063ea4
push edx
call sym.vmtools.dll_DynBuf_Append
add esp, 0xc
test al, al
je 0x10014761
push 2
lea eax, [ebp - 0x18]
push 0x10063ea0
push eax
call sym.vmtools.dll_DynBuf_Append
add esp, 0xc
test al, al
je 0x10014761
mov ecx, dword [ebp - 0x18]
push edi
push edi
push 3
push edi
push edi
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x10014761
push edi
push edi
push edi
push 2
push edi
mov edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x10014761
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, edi
je 0x10014761
lea ecx, [ebp + 8]
push ecx
push esi
mov dword [ebp + 8], edi
call fcn.100273e0
add esp, 8
cmp dword [ebp + 8], edi
jg 0x1001475a
lea edx, [ebp + 8]
push edx
push esi
push str.icudt44l
call fcn.10027440
add esp, 0xc
cmp dword [ebp + 8], edi
jle 0x10014616
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push str.CodeSet_Init:_no_ICU_n
mov byte [0x100830c8], 1
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, dword [sym.imp.MSVCR90.dll_free]
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
cmp dword [ebp - 4], 0
je 0x10014791
mov eax, dword [ebp - 4]
push eax
call edi
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x1001479c
push eax
call edi
mov ecx, dword [ebp - 0xc]
push ecx
call esi
lea edx, [ebp - 0x18]
push edx
call sym.vmtools.dll_DynBuf_Destroy
add esp, 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret