Function at 0x506aa0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d65a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x1c], ebx
call fcn.00504710
lea edi, [ebx + 0xf8]
xor esi, esi
mov ecx, edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], ecx
mov dword [ecx + 4], esi
mov dword [ecx + 0x10], esi
mov dword [ecx + 0xc], esi
mov dword [ecx + 8], esi
push 0xa
push esi
mov byte [esp + 0x30], 1
mov dword [ecx], 0x5e2810
call fcn.0046d900
lea ecx, [ebx + 0x10c]
mov byte [esp + 0x28], 2
call sub.mfc42u.dll_CString::CString_3
lea ecx, [ebx + 0x114]
mov byte [esp + 0x28], 3
call sub.mfc42u.dll_CString::CString_3
lea ecx, [ebx + 0x120]
mov byte [esp + 0x28], 4
call sub.mfc42u.dll_CUIntArray::CUIntArray
mov dword [ebx + 0x134], 0x5e5c44
mov dword [ebx + 0x138], esi
mov dword [ebx + 0x144], esi
mov dword [ebx + 0x140], esi
mov dword [ebx + 0x13c], esi
lea ecx, [ebx + 0x148]
mov byte [esp + 0x28], 6
call fcn.005c0f92
mov dword [ebx + 0x148], 0x5e4670
mov dword [ebx + 0xe8], esi
mov dword [ebx + 0xb8], esi
mov dword [ebx + 0xc0], esi
mov dword [ebx + 0x118], esi
mov dword [ebx + 0xe0], esi
mov dword [ebx], 0x5efff8
mov dword [ebx + 0xd8], esi
mov dword [ebx + 0xc8], esi
mov dword [ebx + 0xcc], esi
mov dword [ebx + 0xd0], esi
mov dword [ebx + 0xd4], esi
mov dword [ebx + 0xec], esi
mov dword [ebx + 0xbc], esi
mov dword [ebx + 0xc4], esi
mov dword [ebx + 0x11c], esi
mov dword [ebx + 0xe4], esi
mov word [ebx + 0x110], si
mov dword [ebx + 0xf0], esi
mov dword [ebx + 0xf4], esi
mov edx, dword [edi + 8]
mov eax, dword [edi + 4]
mov ecx, edx
mov dword [esp + 0x10], ecx
inc ecx
cmp ecx, esi
mov byte [esp + 0x28], 7
jne 0x506c0d
cmp eax, esi
je 0x506c02
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [edi + 4], esi
mov dword [edi + 0xc], esi
mov dword [edi + 8], esi
jmp 0x506d0f
cmp eax, esi
jne 0x506c3d
lea eax, [ecx*4]
push eax
call sub.mfc42u.dll_operatornew
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [edi + 4], eax
lea esi, [ecx + 1]
push esi
push eax
call fcn.005463a0
mov dword [edi + 0xc], esi
mov dword [edi + 8], esi
jmp 0x506d0f
cmp ecx, dword [edi + 0xc]
jg 0x506c5f
cmp ecx, edx
jle 0x506c52
sub ecx, edx
lea edx, [eax + edx*4]
push ecx
push edx
call fcn.005463a0
mov eax, dword [esp + 0x10]
inc eax
mov dword [edi + 8], eax
jmp 0x506d0f
mov eax, dword [edi + 0x10]
cmp eax, esi
jne 0x506c89
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x506c7d
mov eax, 4
jmp 0x506c89
cmp eax, 0x400
jle 0x506c89
mov eax, 0x400
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
mov dword [esp + 0x14], eax
jl 0x506c9a
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x14]
lea edx, [ecx*4]
push edx
call sub.mfc42u.dll_operatornew
mov ecx, dword [edi + 8]
mov esi, dword [edi + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x100]
lea esi, [edx + 1]
mov edx, esi
mov dword [esp + 0x18], eax
sub edx, ecx
lea eax, [eax + ecx*4]
push edx
push eax
call fcn.005463a0
mov ecx, dword [ebx + 0xfc]
push ecx
call sub.mfc42u.dll_operatordelete
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [ebx + 0xfc], edx
mov dword [ebx + 0x100], esi
mov dword [ebx + 0x104], eax
mov ecx, dword [ebx + 0xfc]
mov edx, dword [esp + 0x10]
pop edi
mov eax, ebx
mov dword [ecx + edx*4], 1
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret