Function at 0x4011e7
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 0x401214
xor eax, eax
jmp 0x4013df
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 0x401230
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 0x401283
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 0x40128a
xor eax, eax
jmp 0x4013dd
lea eax, [esi + edi]
push 0x7c
lea ebx, [eax - 2]
pop edx
add eax, 0xfffffffc
xor edi, edi
cmp byte [ebx], dl
jne 0x401379
cmp byte [ebx + 1], 0x3e
jne 0x401379
add esi, 2
cmp ebx, esi
mov eax, ebx
mov dword [ebp + 8], eax
jbe 0x4013d2
jmp 0x4012bf
mov eax, dword [ebp + 8]
lea ecx, [eax - 1]
cmp byte [ecx], dl
jne 0x4012cc
cmp byte [eax - 2], 0x3c
je 0x4012d8
cmp ecx, esi
mov dword [ebp + 8], ecx
ja 0x4012bc
jmp 0x4013d2
mov ecx, dword [ebp - 4]
mov esi, ebx
add ecx, 5
sub esi, eax
cmp eax, ecx
jbe 0x40134c
cmp byte [eax - 5], 0xef
jne 0x40134c
cmp byte [eax - 4], 0xbb
jne 0x40134c
cmp byte [eax - 3], 0xbf
jne 0x40134c
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 0x4013d2
lea ecx, [esi + 1]
call section..text
cmp dword [ebp + 8], ebx
mov edi, eax
jae 0x401374
lea ecx, [esi + edi]
mov esi, dword [ebp + 8]
sub esi, edi
cmp eax, ecx
jae 0x401374
mov dl, byte [esi + eax]
mov byte [eax], dl
inc eax
lea edx, [esi + eax]
cmp edx, ebx
jb 0x401363
mov byte [eax], 0
jmp 0x4013d2
cmp word [eax], dx
jne 0x4013d2
cmp word [eax + 2], 0x3e
jne 0x4013d2
mov ebx, dword [ebp - 4]
add ebx, 4
cmp eax, ebx
mov esi, eax
jbe 0x4013d2
lea ecx, [esi - 2]
cmp word [ecx], dx
jne 0x4013a0
cmp word [esi - 4], 0x3c
je 0x4013a8
mov esi, ecx
cmp esi, ebx
ja 0x401391
jmp 0x4013d2
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