Function at 0x5b3170
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x69116b
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x24]
xor esi, esi
mov ebx, ecx
cmp edi, esi
je 0x5b3388
push edi
call fcn.005b3460
cmp eax, 0xffffffff
jne 0x5b3388
push 0x40
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, esi
mov dword [esp + 0x1c], esi
je 0x5b31cf
mov ecx, eax
call fcn.005b2830
mov esi, eax
mov dword [esp + 0xc], esi
jmp 0x5b31d3
mov dword [esp + 0xc], esi
mov dword [esi + 4], edi
mov edi, dword [esp + 0x28]
mov ecx, edi
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [edi]
call dword [eax + 0x190]
test eax, eax
je 0x5b31f8
push edi
mov ecx, esi
call fcn.005b2a20
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov esi, edx
push ebp
xor edi, edi
mov dword [esp + 0x14], esi
lea ebp, [esi + 1]
cmp ebp, edi
jne 0x5b3245
cmp eax, edi
je 0x5b321e
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [ebx + 4], edi
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
mov dword [eax + esi*4], ecx
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
cmp eax, edi
jne 0x5b3299
lea edi, [ebp*4]
push edi
call sub.MFC42u.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebx + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], ebp
mov dword [eax + esi*4], ecx
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
mov ecx, dword [ebx + 0xc]
cmp ebp, ecx
jg 0x5b32d3
cmp ebp, edx
jle 0x5b32af
mov ecx, ebp
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x10]
mov dword [ebx + 8], ebp
pop ebp
mov dword [eax + esi*4], ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
mov eax, dword [ebx + 0x10]
cmp eax, edi
jne 0x5b32fd
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x5b32f1
mov eax, 4
jmp 0x5b32fd
cmp eax, 0x400
jle 0x5b32fd
mov eax, 0x400
add eax, ecx
cmp ebp, eax
mov dword [esp + 0x28], eax
jl 0x5b330b
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x28]
lea ecx, [eax*4]
push ecx
call sub.MFC42u.DLL_operatornew
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x30], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 8]
mov ecx, ebp
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
push eax
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
add esp, 8
mov dword [ebx + 4], ecx
mov eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], edx
mov dword [eax + esi*4], ecx
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
mov ecx, dword [esp + 0x14]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8