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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push esi
push 0x70e6dca8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x70e74f50]
xor esi, esi
cmp eax, esi
mov dword [ebp - 8], 2
je 0x70daae88
cmp eax, dword [ebp + 0xc]
jne 0x70daae88
mov esi, dword [0x70e6dd94]
jmp 0x70dab059
cmp dword [0x70e6d5a8], esi
push ebx
push edi
je 0x70daaf01
cmp dword [0x70e6d5c4], 5
jb 0x70daaf01
mov edi, dword [sym.imp.GDI32.dll_ExtEscape]
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push 4
push 8
push dword [ebp + 8]
mov ebx, 0x1015
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
je 0x70daaf01
push esi
push esi
lea eax, [ebp - 0x18]
push eax
push 4
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
call edi
test eax, eax
jle 0x70daaf01
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0x1019
push dword [ebp + 8]
call edi
test eax, eax
jle 0x70daaf01
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 4]
mov dword [0x70e74f50], eax
mov dword [0x70e6dd94], esi
jmp 0x70dab057
cmp dword [ebp + 0xc], esi
jne 0x70daaf0e
or esi, 0xffffffff
jmp 0x70dab057
cmp dword [0x70e74f58], esi
jne 0x70daaf3b
push 0x70dab090
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
mov dword [0x70e74f58], eax
je 0x70daaf06
push 0x70dab07c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x70e74f54], eax
mov eax, dword [0x70e74f54]
cmp eax, esi
je 0x70daaf06
lea ecx, [ebp - 0x1c]
push ecx
push 0x400
lea ecx, [ebp - 0x41c]
push ecx
push 2
push esi
push dword [ebp + 0xc]
call eax
test eax, eax
je 0x70daaf06
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x10], ebx
je 0x70daaf06
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x70dab04d
cmp dword [ebp - 0xc], esi
jne 0x70dab04d
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 + 8], eax
je 0x70dab04d
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea edi, [ebx + edi - 0x10]
cmp ebx, edi
mov eax, ebx
mov dword [ebp + 8], edi
jae 0x70dab029
cmp byte [eax], 0x4c
jne 0x70daaffa
push 0xd
pop ecx
mov edi, 0x70dab06c
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x70dab002
inc eax
cmp eax, dword [ebp + 8]
jb 0x70daafe5
jmp 0x70dab029
mov cl, byte [eax]
cmp cl, 0x30
jl 0x70dab00e
cmp cl, 0x39
jle 0x70dab016
cmp eax, dword [ebp + 8]
jae 0x70dab016
inc eax
jmp 0x70dab002
mov al, byte [eax]
cmp al, 0x30
jl 0x70dab029
cmp al, 0x39
jg 0x70dab029
movsx eax, al
sub eax, 0x30
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov dword [0x70e74f50], eax
mov eax, dword [ebp - 4]
mov dword [0x70e6dd94], eax
mov esi, eax
jmp 0x70dab057
push ebx
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
push 0x70e6dca8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
leave
ret 8