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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x401221
xor eax, eax
jmp 0x4013ec
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10000
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
jae 0x40123d
dec ecx
mov dword [ebp - 8], ecx
push esi
push edi
push ebx
push ebx
push ebx
lea esi, [eax - 0x10000]
push 2
push ebx
push dword [ebp - 4]
and esi, 0xffff0000
sub eax, esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push dword [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], eax
call ebx
cmp dword [ebp + 8], 0
je 0x401290
push edi
push esi
push dword [ebp - 8]
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp + 8]
mov esi, eax
mov dword [ebp - 4], esi
call ebx
test esi, esi
jne 0x401297
xor eax, eax
jmp 0x4013ea
lea eax, [esi + edi]
push 0x7c
lea ebx, [eax - 2]
pop edx
add eax, 0xfffffffc
xor edi, edi
cmp byte [ebx], dl
jne 0x401386
cmp byte [ebx + 1], 0x3e
jne 0x401386
add esi, 2
cmp ebx, esi
mov eax, ebx
mov dword [ebp + 8], eax
jbe 0x4013df
jmp 0x4012cc
mov eax, dword [ebp + 8]
lea ecx, [eax - 1]
cmp byte [ecx], dl
jne 0x4012d9
cmp byte [eax - 2], 0x3c
je 0x4012e5
cmp ecx, esi
mov dword [ebp + 8], ecx
ja 0x4012c9
jmp 0x4013df
mov ecx, dword [ebp - 4]
mov esi, ebx
add ecx, 5
sub esi, eax
cmp eax, ecx
jbe 0x401359
cmp byte [eax - 5], 0xef
jne 0x401359
cmp byte [eax - 4], 0xbb
jne 0x401359
cmp byte [eax - 3], 0xbf
jne 0x401359
lea ecx, [esi + esi + 2]
call section..text
push esi
mov ebx, eax
push ebx
push esi
push dword [ebp + 8]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [eax + eax]
and word [esi + ebx], di
lea ecx, [esi + 1]
mov dword [ebp + 8], eax
call section..text
mov edi, eax
xor eax, eax
push eax
push eax
push esi
push edi
push dword [ebp + 8]
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, ebx
mov byte [eax + edi], 0
call fcn.00401010
jmp 0x4013df
lea ecx, [esi + 1]
call section..text
cmp dword [ebp + 8], ebx
mov edi, eax
jae 0x401381
lea ecx, [esi + edi]
mov esi, dword [ebp + 8]
sub esi, edi
cmp eax, ecx
jae 0x401381
mov dl, byte [esi + eax]
mov byte [eax], dl
inc eax
lea edx, [esi + eax]
cmp edx, ebx
jb 0x401370
mov byte [eax], 0
jmp 0x4013df
cmp word [eax], dx
jne 0x4013df
cmp word [eax + 2], 0x3e
jne 0x4013df
mov ebx, dword [ebp - 4]
add ebx, 4
cmp eax, ebx
mov esi, eax
jbe 0x4013df
lea ecx, [esi - 2]
cmp word [ecx], dx
jne 0x4013ad
cmp word [esi - 4], 0x3c
je 0x4013b5
mov esi, ecx
cmp esi, ebx
ja 0x40139e
jmp 0x4013df
sub eax, esi
sar eax, 1
lea ebx, [eax + eax]
lea ecx, [ebx + 1]
mov dword [ebp + 8], eax
call section..text
mov edi, eax
xor eax, eax
push eax
push eax
push ebx
push edi
push dword [ebp + 8]
push esi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [eax + edi], 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4