Function at 0x4930bf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
push 1
pop edi
lea eax, [ebp - 0x140]
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
push dword [ebp + 8]
push str._mmcache_
push eax
call fcn.00491c6e
add esp, 0x10
test eax, eax
je 0x4933d8
lea eax, [ebp - 0x140]
push 0x8000
push eax
call dword [sym.imp.MSVCRT.dll__open]
mov esi, eax
xor ebx, ebx
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp - 4], esi
jle 0x4933d8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push ebx
push edi
mov edi, dword [sym.imp.MSVCRT.dll__get_osfhandle]
push ebx
push ebx
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call edi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_LockFileEx]
lea eax, [ebp - 0x3c]
push 0x20
push eax
push esi
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, 0x20
je 0x49317b
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push ebx
push 1
push ebx
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call edi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_UnlockFileEx]
push esi
jmp 0x493227
push 8
lea eax, [ebp - 0x3c]
push str.MMCACHE
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4933a0
mov eax, dword [ebp - 0x34]
cmp eax, dword [0x54e638]
jne 0x4933a0
mov eax, dword [ebp - 0x30]
cmp eax, dword [0x54e608]
jne 0x4933a0
mov eax, dword [ebp - 0x2c]
cmp eax, dword [0x54e644]
jne 0x4933a0
push dword [ebp - 0x28]
mov eax, dword [0x54e69c]
push dword [eax]
call fcn.00490a8d
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x493232
push dword [ebp + 0x10]
push dword [ebp - 0x28]
call fcn.004919fc
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x493232
push dword [ebp - 0x28]
call sym.stub.exe__emalloc
mov esi, eax
pop ecx
cmp esi, ebx
mov dword [ebp - 0x1c], ebx
jne 0x493232
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push ebx
push 1
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call edi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_UnlockFileEx]
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll__close]
jmp 0x4933d7
push dword [ebp - 0x28]
push esi
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, dword [ebp - 0x28]
jne 0x493349
mov eax, dword [esi + 0x14]
cmp eax, dword [ebp - 0x28]
jne 0x493349
push eax
push esi
call fcn.00490e88
cmp dword [ebp - 0x20], eax
pop ecx
pop ecx
jne 0x493349
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push ebx
push 1
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call edi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_UnlockFileEx]
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll__close]
lea eax, [esi + 0x31]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcmp
add esp, 0xc
test eax, eax
jne 0x493385
cmp byte [0x537080], bl
je 0x4932f5
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
cmp ecx, dword [esi + 0xc]
jne 0x4932c8
mov eax, dword [eax + 0x14]
cmp eax, dword [esi + 8]
je 0x4932f5
cmp dword [ebp - 0x1c], ebx
push esi
je 0x4932dd
mov eax, dword [0x54e69c]
push dword [eax]
call fcn.00490ab8
pop ecx
jmp 0x4932e2
call sym.stub.exe__efree
pop ecx
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.MSVCRT.dll__unlink]
jmp 0x4933d7
push dword [ebp + 0x10]
push esi
call fcn.004933df
cmp dword [ebp - 0x1c], ebx
pop ecx
pop ecx
je 0x49333b
push 1
mov byte [esi + 0x30], bl
pop eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
cmp dword [0x54e680], ebx
jle 0x49332f
push ebx
call dword [sym.imp.MSVCRT.dll_time]
add eax, dword [0x54e680]
pop ecx
mov dword [esi + 0x10], eax
jmp 0x493332
mov dword [esi + 0x10], ebx
push esi
call fcn.004918c3
pop ecx
jmp 0x493342
mov dword [esi + 0x20], ebx
mov byte [esi + 0x30], 1
mov eax, esi
jmp 0x4933da
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push ebx
push 1
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call edi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_UnlockFileEx]
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll__close]
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.MSVCRT.dll__unlink]
pop ecx
pop ecx
cmp dword [ebp - 0x1c], ebx
push esi
je 0x493399
mov eax, dword [0x54e69c]
push dword [eax]
call fcn.00490ab8
jmp 0x4933d6
call sym.stub.exe__efree
jmp 0x4933d7
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push ebx
push 1
push ebx
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call edi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_UnlockFileEx]
push esi
call dword [sym.imp.MSVCRT.dll__close]
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.MSVCRT.dll__unlink]
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret