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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c4a1
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x48106c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - reloc.USER32.dll_PeekMessageA], ecx
push 0x208
lea eax, reloc.USER32.dll_PeekMessageA
push 0
push eax
call fcn.0043ffb0
add esp, 0xc
lea eax, reloc.USER32.dll_PeekMessageA
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, reloc.USER32.dll_PeekMessageA
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - reloc.USER32.dll_PeekMessageA], esi
mov dword [ebp - 4], 0
cmp esi, reloc.USER32.dll_PeekMessageA
jne 0x427715
xor eax, eax
jmp 0x427873
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
mov dword [ebp - reloc.USER32.dll_PeekMessageA], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x4278b7
cmp edi, reloc.USER32.dll_PeekMessageA
je 0x4278b7
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - reloc.USER32.dll_PeekMessageA], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x427841
cmp esi, reloc.USER32.dll_PeekMessageA
je 0x427841
push 0x48
lea eax, [ebp - 0x58]
push 0x3d
push eax
call fcn.0043ffb0
add esp, 0xc
mov byte [ebp - 0x11], 0xa
mov byte [ebp - 0x58], 0xa
push 0
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor edx, edx
mov dword [ebp - reloc.USER32.dll_PeekMessageA], eax
mov dword [ebp - reloc.USER32.dll_PeekMessageA], edx
lea ebx, [eax - 0x48]
mov dword [ebp - reloc.USER32.dll_PeekMessageA], ebx
test ebx, ebx
je 0x427841
lea eax, [edx + esi]
lea ecx, [esi + 0x47]
mov dword [ebp - reloc.USER32.dll_PeekMessageA], eax
add ecx, edx
cmp byte [eax], 0xa
mov dword [ebp - reloc.USER32.dll_PeekMessageA], ecx
jne 0x427821
mov cl, byte [ecx]
cmp cl, 0xa
jne 0x427817
mov ecx, eax
lea edx, [ebp - 0x58]
mov ebx, 0x44
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x427804
add ecx, 4
add edx, 4
sub ebx, 4
jae 0x4277e0
mov eax, dword [ebp - reloc.USER32.dll_PeekMessageA]
cmp dword [eax + 1], 0x3a325049
je 0x42788f
mov edx, dword [ebp - reloc.USER32.dll_PeekMessageA]
mov eax, 0x47
mov ebx, dword [ebp - reloc.USER32.dll_PeekMessageA]
jmp 0x427831
mov eax, 0x48
cmp cl, 0x3d
jmp 0x427829
cmp byte [ecx], 0x3d
mov eax, 0x47
mov ecx, 1
cmove eax, ecx
add edx, eax
mov dword [ebp - reloc.USER32.dll_PeekMessageA], edx
cmp edx, ebx
jb 0x4277b4
xor ebx, ebx
test esi, esi
je 0x42784e
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [ebp - reloc.USER32.dll_PeekMessageA]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x42786a
cmp edi, reloc.USER32.dll_PeekMessageA
je 0x42786a
push edi
call eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x427871
push esi
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c755
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - reloc.USER32.dll_PeekMessageA]
mov ebx, dword [ebp - reloc.USER32.dll_PeekMessageA]
add eax, 0x48
mov ecx, dword [ebp - reloc.USER32.dll_PeekMessageA]
sub ebx, eax
add ebx, esi
push ebx
push eax
call fcn.00423340
cmp eax, ebx
sbb ebx, ebx
neg ebx
jmp 0x427843
xor ebx, ebx
jmp 0x427854