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

Disassembly:
mov eax, 0x100549b6
call fcn.10052270
sub esp, 0x228
mov al, byte [ebp + 0xb]
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0x10c]
push ebx
push ebx
mov ecx, edi
mov dword [ebp - 0x2c], esi
mov byte [edi], al
call fcn.10020513
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [esi], 0x1005dd08
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x10020156
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x10020156
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x1002000f
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10020156
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jne 0x10020034
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
cmp word [eax], 0xfeff
jne 0x10020076
push dword [ebp + 8]
mov dword [esi + 4], 2
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push ebx
push ebx
push eax
push dword [ebp - 0x14]
shr eax, 1
dec eax
push eax
mov eax, dword [ebp - 0x1c]
add eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x10020083
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], 1
mov dword [ebp - 0x18], eax
xor eax, eax
cmp dword [ebp - 0x18], ebx
mov dword [ebp + 8], ebx
jbe 0x100200ec
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov cl, byte [edx + ecx]
cmp cl, 0xd
je 0x100200b4
cmp eax, 0x207
je 0x100200b4
cmp cl, 0xa
je 0x100200e1
mov byte [ebp + eax - 0x234], cl
inc eax
jmp 0x100200e1
mov byte [ebp + eax - 0x234], bl
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
pop ecx
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x28]
push ecx
push eax
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.100204a3
xor eax, eax
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0x18]
jb 0x10020090
cmp byte [ebp - 0x234], bl
je 0x1002011f
mov byte [ebp + eax - 0x234], bl
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
pop ecx
mov dword [ebp + 8], eax
mov eax, dword [edi + 4]
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.100204a3
cmp dword [esi + 4], 2
jne 0x1002012f
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x10]
call edi
mov eax, dword [esi + 0x110]
mov eax, dword [eax]
mov dword [esi + 0x118], eax
mov ecx, dword [ebp - 0xc]
or dword [ebp - 4], 0xffffffff
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4