Function at 0x1017c929
Capabilities:
Get file size
Identify system language via api
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x101d5abc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x410
lea eax, [ebp - 0x420]
mov ebx, ecx
push 0
push eax
call sub.msvcrt.dll_memset
mov esi, 0x1003edd0
lea edi, [ebp - 0x10]
add esp, 0xc
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x43c], edi
call fcn.1017c769
mov ebx, eax
mov dword [ebp - 0x434], ebx
test ebx, ebx
je 0x1017cbfc
push edi
push 0x100080
push 3
push edi
push 1
push SysReAllocStringLen
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x438], esi
cmp esi, 0xffffffff
je 0x1017cbf5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x430], eax
cmp eax, 0xffffffff
je 0x1017cbee
push edi
push edi
push edi
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x1017cbee
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp - 0x424]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1017cbe8
push edi
push 0x208
lea eax, [ebp - 0x420]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
mov ecx, eax
test ecx, ecx
je 0x1017cbb5
cmp ecx, 0x208
ja 0x1017cbb5
mov esi, dword [ebp - 0x434]
lea eax, [ebp - 0x10]
push 4
push eax
push esi
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x1017ca62
mov ecx, esi
call fcn.1017c8a0
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x43c], 1
jmp 0x1017ca6a
mov eax, esi
mov dword [ebp - 0x42c], esi
push 0x208
push eax
call dword [sym.imp.msvcrt.dll_wcsnlen]
mov esi, eax
lea eax, [ebp - 0x420]
push 0x208
push eax
call dword [sym.imp.msvcrt.dll_wcsnlen]
add esp, 0x10
push 0x208
cmp eax, esi
jae 0x1017ca9f
lea eax, [ebp - 0x420]
push eax
jmp 0x1017caa5
push dword [ebp - 0x42c]
call dword [sym.imp.msvcrt.dll_wcsnlen]
mov esi, dword [ebp - 0x438]
pop ecx
pop ecx
mov ecx, eax
lea eax, [ebp - 0x420]
push ecx
push dword [ebp - 0x42c]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x1017cbb5
mov eax, dword [ebp - 0x430]
cmp eax, 0x258
jbe 0x1017cbad
cmp eax, dword [ebx]
jb 0x1017cbad
cmp dword [ebx + 8], 0x19001e
jne 0x1017cbad
cmp dword [ebx + 4], 0x50504420
jne 0x1017cbad
mov ecx, ebx
call fcn.10134738
test eax, eax
je 0x1017cbad
mov edx, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x30]
lea eax, [ebx + edx]
neg edx
sbb edx, edx
and edx, eax
lea eax, [ebx + ecx]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebp - 0x438], ecx
test edx, edx
je 0x1017cbad
test ecx, ecx
je 0x1017cbad
mov eax, dword [ebx]
add eax, ebx
mov dword [ebp - 0x424], eax
lea eax, [edx + 0x140]
cmp eax, dword [ebp - 0x424]
ja 0x1017cbad
lea eax, [ecx + 0xe4]
cmp eax, dword [ebp - 0x424]
ja 0x1017cbad
cmp dword [edx], 0x140
jne 0x1017cbad
cmp dword [ecx], 0xe4
jne 0x1017cbad
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, dword [ebp - 0x438]
movzx eax, ax
cmp dword [ecx + 0xdc], eax
jne 0x1017cbad
push dword [ebp - 0x430]
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1017cbad
push dword [ebp - 0x430]
push ebx
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x1017cbb5
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x434]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x43c], 0
je 0x1017cbdb
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x1017cbdb
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, esi
mov ecx, ebx
call fcn.10134c85
mov eax, edi
jmp 0x1017cbfe
mov ebx, dword [ebp - 0x434]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101885f0
leave
ret