Function at 0xffe9cfb
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0xc8
or dword [ebp + 0x58], 0xffffffff
push ebx
push esi
lea eax, [ebp + 0x54]
push eax
xor esi, esi
lea eax, [ebp + 0x4c]
push eax
push esi
push dword [ebp + 0x74]
mov dword [ebp + 0x60], 0x54f
push dword [ebp + 0x6c]
mov dword [ebp + 0x50], esi
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x44], esi
mov dword [ebp + 0x54], esi
mov dword [ebp + 0x4c], esi
call fcn.0ffe9645
cmp eax, esi
je 0xffe9d47
mov ebx, dword [ebp + 0x7c]
mov dword [ebp + 0x60], eax
jmp 0xffea0b5
mov eax, dword [ebp + 0x70]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0xffe9d4d
sub eax, ecx
cmp eax, 0x45
push edi
jne 0xffe9dea
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0x70]
push 2
push esi
call edi
mov ebx, eax
cmp ebx, esi
jne 0xffe9d89
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp + 0x7c]
mov dword [ebp + 0x60], eax
jmp 0xffea0b4
lea eax, [ebx + ebx + 2]
push eax
call fcn.0ffe82b0
mov esi, eax
test esi, esi
mov dword [ebp + 0x44], esi
jne 0xffe9da5
mov dword [ebp + 0x60], 8
jmp 0xffe9dbf
push ebx
push esi
push 0xffffffffffffffff
push dword [ebp + 0x70]
push 2
push 0
call edi
test eax, eax
jne 0xffe9dc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x60], eax
mov ebx, dword [ebp + 0x7c]
jmp 0xffea0a4
lea eax, [ebp + 0x58]
push eax
push esi
push dword [ebp + 0x54]
push 0x80000000
push dword [ebp + 0x74]
call fcn.0ffe9996
test eax, eax
jne 0xffe9dea
mov ebx, dword [ebp + 0x7c]
push esi
lea eax, [ebx + 0x44]
push eax
jmp 0xffe9e5e
mov ebx, dword [ebp + 0x7c]
lea esi, [ebx + 0x44]
push esi
push dword [ebp + 0x70]
call fcn.0ffe8a50
test eax, eax
jne 0xffea09a
lea eax, [ebp + 0x58]
push eax
push esi
push dword [ebp + 0x54]
push 0x80000000
push dword [ebp + 0x74]
call fcn.0ffe9996
test eax, eax
je 0xffe9e65
cmp eax, 5
je 0xffe9e65
mov ecx, 0x80090016
cmp eax, ecx
jne 0xffe9e65
cmp dword [ebp + 0x74], 0
jne 0xffe9e77
cmp dword [ebp + 0x4c], 0
jne 0xffe9e77
push 0x2a
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0x70]
push dword [ebp + 0x54]
call fcn.0ffe9a5d
test eax, eax
jne 0xffea09a
lea eax, [ebp - 0x64]
push eax
push esi
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
test byte [ebp + 0x78], 8
je 0xffe9e7f
mov dword [ebp + 0x60], 0x8009000f
jmp 0xffea0a4
mov dword [ebp + 0x60], ecx
jmp 0xffea0a4
xor esi, esi
push esi
push dword [ebp + 0x58]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0xffe9e9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0xffea09a
cmp eax, 0x1c
jb 0xffea0a4
push esi
push esi
push esi
push 2
push esi
push dword [ebp + 0x58]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [ebp + 0x50], eax
je 0xffe9e90
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [ebp + 0x5c], eax
je 0xffe9e90
mov eax, dword [eax]
cmp eax, 2
mov dword [ebx], eax
jne 0xffea0a4
cmp dword [ebx + 0x20], 0
mov eax, dword [ebp + 0x5c]
lea edx, [ebx + 4]
push 7
lea esi, [eax + 4]
pop ecx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
je 0xffe9f01
cmp dword [edx], 0
je 0xffe9f01
mov dword [ebp + 0x60], 0x80090022
jmp 0xffea0a4
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
push dword [ebx + 8]
mov dword [ebp + 0x48], ecx
mov dword [ebp + 0x4c], eax
call fcn.0ffe82b0
test eax, eax
mov dword [ebx + 0x40], eax
je 0xffea05d
mov ecx, dword [ebx + 8]
mov esi, dword [ebp + 0x5c]
mov edi, eax
mov eax, ecx
shr ecx, 2
add esi, 0x28
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 8]
push dword [ebx + 0x1c]
add esi, 0x28
mov dword [ebp + 0x7c], esi
call fcn.0ffe82b0
test eax, eax
mov dword [ebx + 0x3c], eax
je 0xffea05d
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebp + 0x5c]
mov edi, eax
mov eax, ecx
add esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x7c]
add esi, dword [ebx + 0x1c]
mov eax, dword [ebx + 0xc]
test eax, eax
mov dword [ebp + 0x7c], esi
je 0xffea00f
cmp dword [ebx + 0x10], 0
je 0xffea00f
push eax
call fcn.0ffe82b0
test eax, eax
mov dword [ebx + 0x24], eax
je 0xffea05d
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp + 0x5c]
mov edi, eax
mov eax, ecx
add esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x7c]
add esi, dword [ebx + 0xc]
push dword [ebx + 0x10]
mov dword [ebp + 0x7c], esi
call fcn.0ffe82b0
test eax, eax
mov dword [ebx + 0x28], eax
je 0xffea05d
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebp + 0x5c]
mov edi, eax
mov eax, ecx
add esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x7c]
add esi, dword [ebx + 0x10]
lea eax, [ebx + 0x2c]
push eax
push dword [ebp + 0x48]
lea eax, [esi + edx]
push eax
push dword [ebp + 0x74]
call fcn.0ffe8c04
test eax, eax
jne 0xffea09a
add esi, dword [ebp + 0x48]
mov dword [ebp + 0x7c], esi
mov eax, dword [ebx + 0x14]
test eax, eax
je 0xffea09f
cmp dword [ebx + 0x18], 0
je 0xffea09f
push eax
call fcn.0ffe82b0
test eax, eax
mov dword [ebx + 0x30], eax
je 0xffea05d
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebp + 0x5c]
mov edi, eax
mov eax, ecx
add esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x7c]
add esi, dword [ebx + 0x14]
push dword [ebx + 0x18]
mov dword [ebp + 0x7c], esi
call fcn.0ffe82b0
test eax, eax
mov dword [ebx + 0x34], eax
jne 0xffea066
mov dword [ebp + 0x60], 8
jmp 0xffea0a4
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebp + 0x5c]
mov edi, eax
mov eax, ecx
shr ecx, 2
add esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x7c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, dword [ebx + 0x18]
lea ecx, [ebx + 0x38]
push ecx
push dword [ebp + 0x4c]
add eax, edx
push eax
push dword [ebp + 0x74]
call fcn.0ffe8c04
test eax, eax
je 0xffea09f
mov dword [ebp + 0x60], eax
jmp 0xffea0a4
xor ebx, ebx
mov dword [ebp + 0x60], ebx
cmp dword [ebp + 0x44], 0
je 0xffea0b2
push dword [ebp + 0x44]
call fcn.0ffe82e0
xor esi, esi
pop edi
cmp ebx, esi
je 0xffea0bf
push ebx
call fcn.0ffe86f8
cmp dword [ebp + 0x54], esi
je 0xffea0cc
push dword [ebp + 0x54]
call fcn.0ffe82e0
cmp dword [ebp + 0x5c], esi
je 0xffea0da
push dword [ebp + 0x5c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp + 0x50], esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0xffea0ea
push dword [ebp + 0x50]
call esi
cmp dword [ebp + 0x58], 0xffffffff
je 0xffea0f5
push dword [ebp + 0x58]
call esi
mov eax, dword [ebp + 0x60]
pop esi
pop ebx
add ebp, 0x64
leave
ret 0x14