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

Disassembly:
mov eax, 0x200a231f
call fcn.2007d394
sub esp, 0xcc
mov eax, dword [0x200cc84c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x6c], esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.2006fa73
test al, al
je 0x2006fd9d
cmp dword [ebp + 0xc], 0xa
ja 0x2006fdba
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.2007c9ae
leave
ret 8
push 0x200aac80
lea ecx, [ebp - 0x60]
call fcn.200162c7
mov dword [ebp - 4], esi
cmp dword [edi + 0x40], 0x10
jb 0x2006fdd5
mov edi, dword [edi + 0x2c]
jmp 0x2006fdd8
add edi, 0x2c
push 1
push edi
lea ecx, [ebp - 0x60]
call fcn.200166f6
mov eax, dword [ebp + 0xc]
add eax, 0xf85b
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x68], esi
je 0x2006fe07
push dword [ebp - 0x68]
push 4
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x60]
call fcn.20016014
cmp dword [ebp - 0x6c], esi
je 0x2006fe20
push dword [ebp - 0x6c]
push 4
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x60]
call fcn.20016014
lea ecx, [ebp - 0x60]
call fcn.200164a6
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
cmp eax, esi
jle 0x2006fe39
cmp eax, 0x7ffffffe
jle 0x2006fe40
mov dword [ebp - 0x70], 0x78
cmp dword [ebx + 0x18], 0x10
jb 0x2006fe4b
mov eax, dword [ebx + 4]
jmp 0x2006fe4e
lea eax, [ebx + 4]
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, esi
je 0x20070034
cmp edi, 0xffffffff
je 0x20070034
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x94], eax
push esi
push esi
push esi
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
mov dword [ebp - 0x64], ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp ebx, esi
je 0x2007000b
cmp ebx, 0xffffffff
je 0x2007000b
push esi
push esi
push esi
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x74], ebx
cmp ebx, esi
jne 0x2006fef8
push dword [ebp - 0x64]
call edi
mov dword [ebp - 0x98], str.Map_File_Error_
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xa8]
call fcn.2007d9a3
push 0x200c54ec
lea eax, [ebp - 0xa8]
jmp 0x2007005b
mov byte [ebp - 4], 1
push 4
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x68]
add eax, ebx
push eax
call fcn.2007d500
add esp, 0xc
mov dword [ebp - 4], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x94]
push ebx
call dword [sym.imp.imagehlp.dll_CheckSumMappedFile]
push ebx
call dword [sym.imp.imagehlp.dll_ImageNtHeader]
mov dword [ebp - 0x80], eax
cmp eax, esi
je 0x2006ff65
mov ecx, dword [eax + 0x58]
cmp ecx, dword [ebp - 0x7c]
jne 0x2006ff65
push 4
push 0x200aacb0
push eax
call fcn.2007ce10
add esp, 0xc
test eax, eax
jne 0x2006ff65
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x58], eax
mov dword [ebp - 4], esi
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x64]
call edi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.200166a0
mov al, 1
jmp 0x2006fd9f
mov dword [ebp - 0x8c], str.Invalid_Map_
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0xb4]
call fcn.2007d9a3
push 0x200c54ec
lea eax, [ebp - 0xb4]
jmp 0x2007005b
mov dword [ebp - 0x84], str.Invalid_File_
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xc0]
call fcn.2007d9a3
push 0x200c54ec
lea eax, [ebp - 0xc0]
push eax
call fcn.2007d958
int3