Function at 0x4aed30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x557541
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x668038]
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.0043bf90
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 0x4aede6
push eax
call fcn.004a3dc0
mov dword [esp + 0x1c], eax
jmp 0x4aedea
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x58], 2
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x4aee01
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 0x4aef36
call fcn.004a3ec0
test al, al
je 0x4aef36
mov eax, ebp
lea ecx, [esp + 0x20]
call fcn.004a03c0
mov byte [esp + 0x58], 4
xor eax, eax
mov byte [esp + 0x1b], 1
cmp byte [esp + 0x6c], bl
je 0x4aee6f
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.0043bf90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete byte [esp + 0x1b]
jmp 0x4aee8d
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.0043bf90
mov ebp, dword [esp + 0x68]
mov eax, esi
call fcn.004ae9c0
test al, al
je 0x4aef28
push ebx
push ebx
push ebx
push 0xf001f
mov eax, esi
call fcn.00408130
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x14], eax
cmp eax, ebx
jne 0x4aeecf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.004ae9e0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4aef28
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 0x4aef06
cmp eax, ebp
jae 0x4aef06
mov edx, dword [edi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call fcn.004ae9e0
push 0x7a
mov dword [edi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4aef28
cmp byte [esp + 0x1b], bl
jne 0x4aef1a
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.004a03e0
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