Function at 0x4aa160
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x551431
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, dword [esp + 0x60]
lea eax, [edi + 8]
lea ebp, [edi + 4]
mov dword [ebp], vtable.ISynchObject.0
xor ebx, ebx
push eax
mov dword [edi], vtable.VUnknown_class_Interface::VMemoryMappedBuffer_.1.0
mov dword [ebp], vtable.VUnknown_class_Interface::VMemoryMappedBuffer_.0
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x58], ebx
lea esi, [edi + 0xc]
xor ecx, ecx
mov eax, esi
mov dword [edi], vtable.VMemoryMappedBuffer.0
mov dword [ebp], vtable.VMemoryMappedBuffer.1.0
call fcn.004a9e00
mov byte [esp + 0x58], 1
mov dword [edi + 0x10], ebx
mov byte [esp + 0x58], 2
push 0x40
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call sub.mfc90u.dll_new_1
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x58], 3
cmp eax, ebx
je 0x4aa216
push eax
call fcn.0049f050
mov dword [esp + 0x1c], eax
jmp 0x4aa21a
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x58], 2
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x4aa231
mov dword [edi + 0x10], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x10], eax
cmp eax, ebx
je 0x4aa366
call fcn.0049f150
test al, al
je 0x4aa366
mov eax, ebp
lea ecx, [esp + 0x20]
call fcn.0049b970
mov byte [esp + 0x58], 4
xor eax, eax
mov byte [esp + 0x1b], 1
cmp byte [esp + 0x6c], bl
je 0x4aa29f
mov ecx, dword [esp + 0x64]
mov ebp, dword [esp + 0x68]
push ecx
push ebp
push eax
push 4
lea edx, [esp + 0x38]
push edx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, eax
mov eax, esi
call fcn.004a9e00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete byte [esp + 0x1b]
jmp 0x4aa2bd
mov eax, dword [esp + 0x64]
push eax
push ebx
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ecx, eax
mov eax, esi
call fcn.004a9e00
mov ebp, dword [esp + 0x68]
mov eax, esi
call fcn.004a9de0
test al, al
je 0x4aa358
push ebx
push ebx
push ebx
push 0xf001f
mov eax, esi
call fcn.00407eb0
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x14], eax
cmp eax, ebx
jne 0x4aa2ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.004a9e10
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4aa358
push 0x1c
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [esp + 0x40]
cmp ebp, 0xffffffff
je 0x4aa336
cmp eax, ebp
jae 0x4aa336
mov edx, dword [edi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call fcn.004a9e10
push 0x7a
mov dword [edi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4aa358
cmp byte [esp + 0x1b], bl
jne 0x4aa34a
push eax
mov eax, dword [edi + 0x14]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x40]
mov dword [edi + 0x18], ecx
mov byte [esp + 0x58], 2
lea eax, [esp + 0x20]
call fcn.0049b990
mov dword [esp + 0x58], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x10