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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4edd770c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x4edd72ec
mov dword [ebp - 0x408], edi
mov dword [ebp - 0x410], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4eddf7c4]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x420], 2
je 0x4ed05a9e
cmp eax, ebx
jne 0x4ed05a9e
mov esi, dword [0x4eddcdc0]
push 0x4edd72ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x4ed05ce4
cmp dword [0x4edd70f4], esi
je 0x4ed05b39
cmp dword [0x4edd71d4], 5
jb 0x4ed05b39
push esi
push esi
lea eax, [ebp - 0x41c]
push eax
push 4
push 8
push edi
mov edi, dword [sym.imp.GDI32.dll_ExtEscape]
mov ebx, 0x1015
mov dword [ebp - 0x41c], ebx
call edi
test eax, eax
je 0x4ed05b39
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 0x4ed05b39
lea eax, [ebp - 0x40c]
push eax
push 4
lea eax, [ebp - 0x420]
push eax
push 4
push 0x1019
push dword [ebp - 0x408]
call edi
test eax, eax
jle 0x4ed05b39
mov eax, dword [ebp - 0x410]
mov esi, dword [ebp - 0x40c]
mov dword [0x4eddf7c4], eax
mov dword [0x4eddcdc0], esi
jmp 0x4ed05a8c
cmp dword [ebp - 0x410], esi
jne 0x4ed05b49
or esi, 0xffffffff
jmp 0x4ed05a8c
cmp dword [0x4eddf7cc], esi
jne 0x4ed05b76
push 0x4ed05d1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
mov dword [0x4eddf7cc], eax
je 0x4ed05b41
push 0x4ed05d08
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4eddf7c8], eax
mov eax, dword [0x4eddf7c8]
cmp eax, esi
je 0x4ed05b41
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 0x4ed05b41
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 0x4ed05b41
lea eax, [ebp - 0x424]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x4ed05ccf
cmp dword [ebp - 0x424], esi
jne 0x4ed05ccf
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, esi
je 0x4ed05cbe
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x414], esi
call ebx
or dword [ebp - 0x40c], 0xffffffff
lea edi, [esi + edi - 0x10]
cmp esi, edi
mov eax, esi
mov dword [ebp - 0x408], edi
jae 0x4ed05c8d
cmp byte [eax], 0x4c
jne 0x4ed05c53
push 0xd
pop ecx
mov edi, 0x4ed05cf8
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4ed05c5e
inc eax
cmp eax, dword [ebp - 0x408]
jae 0x4ed05c8d
jmp 0x4ed05c3e
mov cl, byte [eax]
cmp cl, 0x30
jl 0x4ed05c6a
cmp cl, 0x39
jle 0x4ed05c75
cmp eax, dword [ebp - 0x408]
jae 0x4ed05c75
inc eax
jmp 0x4ed05c5e
mov al, byte [eax]
mov cl, al
sub cl, 0x30
cmp cl, 9
ja 0x4ed05c8d
movsx eax, al
sub eax, 0x30
mov dword [ebp - 0x40c], eax
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x418]
call ebx
mov eax, dword [ebp - 0x410]
mov dword [0x4eddf7c4], eax
mov eax, dword [ebp - 0x40c]
mov dword [0x4eddcdc0], eax
mov esi, eax
jmp 0x4ed05a8c
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4ed05b41
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4edd72ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4ec515ae
leave
ret 8