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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push esi
push 0x70e6dca4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x70e74f48]
xor esi, esi
cmp eax, esi
mov dword [ebp - 8], 2
je 0x70daae08
cmp eax, dword [ebp + 0xc]
jne 0x70daae08
mov esi, dword [0x70e6dd90]
jmp 0x70daafd9
cmp dword [0x70e6d658], esi
push ebx
push edi
je 0x70daae81
cmp dword [0x70e6d5ac], 5
jb 0x70daae81
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 0x70daae81
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 0x70daae81
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 0x70daae81
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 4]
mov dword [0x70e74f48], eax
mov dword [0x70e6dd90], esi
jmp 0x70daafd7
cmp dword [ebp + 0xc], esi
jne 0x70daae8e
or esi, 0xffffffff
jmp 0x70daafd7
cmp dword [0x70e74f50], esi
jne 0x70daaebb
push 0x70dab010
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
mov dword [0x70e74f50], eax
je 0x70daae86
push 0x70daaffc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x70e74f4c], eax
mov eax, dword [0x70e74f4c]
cmp eax, esi
je 0x70daae86
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 0x70daae86
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 0x70daae86
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x70daafcd
cmp dword [ebp - 0xc], esi
jne 0x70daafcd
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 0x70daafcd
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 0x70daafa9
cmp byte [eax], 0x4c
jne 0x70daaf7a
push 0xd
pop ecx
mov edi, 0x70daafec
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x70daaf82
inc eax
cmp eax, dword [ebp + 8]
jb 0x70daaf65
jmp 0x70daafa9
mov cl, byte [eax]
cmp cl, 0x30
jl 0x70daaf8e
cmp cl, 0x39
jle 0x70daaf96
cmp eax, dword [ebp + 8]
jae 0x70daaf96
inc eax
jmp 0x70daaf82
mov al, byte [eax]
cmp al, 0x30
jl 0x70daafa9
cmp al, 0x39
jg 0x70daafa9
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 [0x70e74f48], eax
mov eax, dword [ebp - 4]
mov dword [0x70e6dd90], eax
mov esi, eax
jmp 0x70daafd7
push ebx
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
push 0x70e6dca4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
leave
ret 8