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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push esi
push 0x7a20a0fc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x7a213f58]
xor esi, esi
cmp eax, esi
mov dword [ebp - 8], 2
je 0x7a12f964
cmp eax, dword [ebp + 0xc]
jne 0x7a12f964
mov esi, dword [0x7a20cda0]
jmp 0x7a12fb35
cmp dword [0x7a20a03c], esi
push ebx
push edi
je 0x7a12f9dd
cmp dword [0x7a20a064], 5
jb 0x7a12f9dd
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 0x7a12f9dd
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 0x7a12f9dd
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 0x7a12f9dd
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 4]
mov dword [0x7a213f58], eax
mov dword [0x7a20cda0], esi
jmp 0x7a12fb33
cmp dword [ebp + 0xc], esi
jne 0x7a12f9ea
or esi, 0xffffffff
jmp 0x7a12fb33
cmp dword [0x7a213f60], esi
jne 0x7a12fa17
push 0x7a1ec474
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
mov dword [0x7a213f60], eax
je 0x7a12f9e2
push 0x7a1ec460
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7a213f5c], eax
mov eax, dword [0x7a213f5c]
cmp eax, esi
je 0x7a12f9e2
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 0x7a12f9e2
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 0x7a12f9e2
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x7a12fb29
cmp dword [ebp - 0xc], esi
jne 0x7a12fb29
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 0x7a12fb29
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 0x7a12fb05
cmp byte [eax], 0x4c
jne 0x7a12fad6
push 0xd
pop ecx
mov edi, 0x7a1ec450
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x7a12fade
inc eax
cmp eax, dword [ebp + 8]
jb 0x7a12fac1
jmp 0x7a12fb05
mov cl, byte [eax]
cmp cl, 0x30
jl 0x7a12faea
cmp cl, 0x39
jle 0x7a12faf2
cmp eax, dword [ebp + 8]
jae 0x7a12faf2
inc eax
jmp 0x7a12fade
mov al, byte [eax]
cmp al, 0x30
jl 0x7a12fb05
cmp al, 0x39
jg 0x7a12fb05
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 [0x7a213f58], eax
mov eax, dword [ebp - 4]
mov dword [0x7a20cda0], eax
mov esi, eax
jmp 0x7a12fb33
push ebx
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
push 0x7a20a0fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
leave
ret 8