Function at 0x4e7ad0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x590391
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [esp + 0x28]
xor edi, edi
cmp ebx, eax
mov dword [esp + 0x20], edi
jl 0x4e7c7f
inc ebx
cmp ebx, edi
jne 0x4e7b41
mov esi, dword [ebp + 4]
cmp esi, edi
je 0x4e7b36
mov ecx, eax
dec eax
test ecx, ecx
je 0x4e7b27
lea ebx, [eax + 1]
push edi
mov ecx, esi
call fcn.004e7dd0
add esi, 0x48
dec ebx
jne 0x4e7b19
mov eax, dword [ebp + 4]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
jmp 0x4e7c7f
mov ecx, dword [ebp + 4]
cmp ecx, edi
jne 0x4e7ba4
lea edi, [ebx + ebx*8]
shl edi, 3
push edi
call sub.MFC42.DLL_operatornew
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
mov dword [ebp + 4], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x10], esi
rep stosb byte es:[edi], al
lea edi, [ebx]
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x20], 1
je 0x4e7b8a
mov ecx, esi
call fcn.004e7d50
add esi, 0x48
dec edi
mov byte [esp + 0x20], 0
mov dword [esp + 0x10], esi
jne 0x4e7b76
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x4e7c7f
mov esi, dword [ebp + 0xc]
cmp ebx, esi
jg 0x4e7be1
cmp eax, ebx
jge 0x4e7bc8
mov edx, ebx
sub edx, eax
lea eax, [eax + eax*8]
push edx
lea ecx, [ecx + eax*8]
push ecx
call fcn.004e7df0
mov dword [ebp + 8], ebx
jmp 0x4e7c7f
jle 0x4e7bd9
sub eax, ebx
lea edx, [ebx + ebx*8]
push eax
lea eax, [ecx + edx*8]
push eax
call fcn.004e7da0
mov dword [ebp + 8], ebx
jmp 0x4e7c7f
mov ecx, dword [ebp + 0x10]
cmp ecx, edi
jne 0x4e7c0c
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x4e7bff
mov ecx, 4
jmp 0x4e7c0c
cmp ecx, 0x400
jle 0x4e7c0c
mov ecx, 0x400
lea eax, [esi + ecx]
cmp ebx, eax
jge 0x4e7c19
mov dword [esp + 0x10], eax
jmp 0x4e7c1f
mov dword [esp + 0x10], ebx
mov eax, ebx
lea ecx, [eax + eax*8]
shl ecx, 3
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
mov edi, eax
add esp, 4
lea ecx, [ecx + ecx*8]
mov dword [esp + 0x14], eax
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
sub edx, ecx
lea ecx, [ecx + ecx*8]
push edx
lea edx, [eax + ecx*8]
push edx
call fcn.004e7df0
mov eax, dword [ebp + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ebp + 4], eax
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
lea edx, [eax + eax*8]
mov eax, dword [ebp + 4]
lea esi, [eax + edx*8]
mov dword [esi], ecx
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x6c]
push ecx
mov dword [esi + 0x38], edx
lea ecx, [esi + 0x40]
mov dword [esi + 0x3c], eax
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x70]
lea ecx, [esi + 0x44]
push edx
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x70]
mov dword [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x6c]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x4c