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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push esi
push 0x70e7a054
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x70e83f68]
xor esi, esi
cmp eax, esi
mov dword [ebp - 8], 2
je 0x70d9fa14
cmp eax, dword [ebp + 0xc]
jne 0x70d9fa14
mov esi, dword [0x70e7cdb0]
jmp 0x70d9fbe5
cmp dword [0x70e7a018], esi
push ebx
push edi
je 0x70d9fa8d
cmp dword [0x70e7a084], 5
jb 0x70d9fa8d
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 0x70d9fa8d
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 0x70d9fa8d
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 0x70d9fa8d
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 4]
mov dword [0x70e83f68], eax
mov dword [0x70e7cdb0], esi
jmp 0x70d9fbe3
cmp dword [ebp + 0xc], esi
jne 0x70d9fa9a
or esi, 0xffffffff
jmp 0x70d9fbe3
cmp dword [0x70e83f70], esi
jne 0x70d9fac7
push 0x70e5c524
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
mov dword [0x70e83f70], eax
je 0x70d9fa92
push 0x70e5c510
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x70e83f6c], eax
mov eax, dword [0x70e83f6c]
cmp eax, esi
je 0x70d9fa92
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 0x70d9fa92
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 0x70d9fa92
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x70d9fbd9
cmp dword [ebp - 0xc], esi
jne 0x70d9fbd9
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 0x70d9fbd9
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 0x70d9fbb5
cmp byte [eax], 0x4c
jne 0x70d9fb86
push 0xd
pop ecx
mov edi, 0x70e5c500
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x70d9fb8e
inc eax
cmp eax, dword [ebp + 8]
jb 0x70d9fb71
jmp 0x70d9fbb5
mov cl, byte [eax]
cmp cl, 0x30
jl 0x70d9fb9a
cmp cl, 0x39
jle 0x70d9fba2
cmp eax, dword [ebp + 8]
jae 0x70d9fba2
inc eax
jmp 0x70d9fb8e
mov al, byte [eax]
cmp al, 0x30
jl 0x70d9fbb5
cmp al, 0x39
jg 0x70d9fbb5
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 [0x70e83f68], eax
mov eax, dword [ebp - 4]
mov dword [0x70e7cdb0], eax
mov esi, eax
jmp 0x70d9fbe3
push ebx
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
push 0x70e7a054
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
leave
ret 8