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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [section..data]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x4edd01f4
mov dword [ebp - 4], eax
mov dword [ebp - 0x408], edi
mov dword [ebp - 0x410], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4edd9f90]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x41c], 2
je 0x4ed042ad
cmp eax, ebx
jne 0x4ed042ad
mov esi, dword [0x4edd2dc4]
jmp 0x4ed044d2
cmp dword [0x4edd01d8], esi
je 0x4ed04348
cmp dword [0x4edd0234], 5
jb 0x4ed04348
push esi
push esi
lea eax, [ebp - 0x420]
push eax
push 4
push 8
push edi
mov edi, dword [sym.imp.GDI32.dll_ExtEscape]
mov ebx, 0x1015
mov dword [ebp - 0x420], ebx
call edi
test eax, eax
je 0x4ed04348
push esi
push esi
lea eax, [ebp - 0x414]
push eax
push 4
push ebx
push dword [ebp - 0x408]
mov dword [ebp - 0x414], esi
call edi
test eax, eax
jle 0x4ed04348
lea eax, [ebp - 0x40c]
push eax
push 4
lea eax, [ebp - 0x41c]
push eax
push 4
push 0x1019
push dword [ebp - 0x408]
call edi
test eax, eax
jle 0x4ed04348
mov eax, dword [ebp - 0x410]
mov esi, dword [ebp - 0x40c]
mov dword [0x4edd9f90], eax
mov dword [0x4edd2dc4], esi
jmp 0x4ed044d2
cmp dword [ebp - 0x410], esi
jne 0x4ed04358
or esi, 0xffffffff
jmp 0x4ed044d2
cmp dword [0x4edd9f98], esi
jne 0x4ed04385
push 0x4ed04514
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
mov dword [0x4edd9f98], eax
je 0x4ed04350
push 0x4ed04500
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4edd9f94], eax
mov eax, dword [0x4edd9f94]
cmp eax, esi
je 0x4ed04350
lea ecx, [ebp - 0x428]
push ecx
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push 2
push esi
push dword [ebp - 0x410]
call eax
test eax, eax
je 0x4ed04350
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp - 0x3f4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x418], ebx
je 0x4ed04350
lea eax, [ebp - 0x424]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x4ed044c8
cmp dword [ebp - 0x424], esi
jne 0x4ed044c8
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [ebp - 0x408], eax
je 0x4ed044c8
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp - 0x408]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x40c], 0xffffffff
lea edi, [ebx + edi - 0x10]
cmp ebx, edi
mov eax, ebx
mov dword [ebp - 0x408], edi
jae 0x4ed0449b
cmp byte [eax], 0x4c
jne 0x4ed04463
push 0xd
pop ecx
mov edi, 0x4ed044f0
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4ed0446e
inc eax
cmp eax, dword [ebp - 0x408]
jae 0x4ed0449b
jmp 0x4ed0444e
mov cl, byte [eax]
cmp cl, 0x30
jl 0x4ed0447a
cmp cl, 0x39
jle 0x4ed04485
cmp eax, dword [ebp - 0x408]
jae 0x4ed04485
inc eax
jmp 0x4ed0446e
mov al, byte [eax]
cmp al, 0x30
jl 0x4ed0449b
cmp al, 0x39
jg 0x4ed0449b
movsx eax, al
sub eax, 0x30
mov dword [ebp - 0x40c], eax
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x410]
mov dword [0x4edd9f90], eax
mov eax, dword [ebp - 0x40c]
mov dword [0x4edd2dc4], eax
mov esi, eax
jmp 0x4ed044d2
push ebx
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4edd01f4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.4ecfd994
leave
ret 8