Function at 0x411d90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffffc
sub esp, 0x1c
mov ebx, ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0x3ffffff
ja 0x412013
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
shl ecx, 6
push ecx
push 0
push dword [eax + 0x18]
call sub.ntdll.dll_RtlAllocateHeap
mov dword [esp + 0xc], eax
test eax, eax
je 0x412013
mov eax, dword [ebx + 4]
test eax, eax
jle 0x4120a1
mov dword [esp + 0x10], ebx
mov ecx, dword [ebx]
shl eax, 6
add eax, ecx
mov edi, dword [esp + 0xc]
mov dword [esp + 0x18], eax
jmp 0x411e26
mov dword [edi + 0x28], eax
mov dword [ecx + 0x28], 4
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x2c], 0
mov al, byte [ecx + 0x38]
mov byte [edi + 0x38], al
mov eax, dword [ecx + 0x34]
mov dword [edi + 0x34], eax
add ecx, 0x40
add edi, 0x40
mov eax, dword [esp + 0x18]
cmp ecx, eax
jae 0x41201a
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x10], eax
movups xmm0, xmmword [ecx]
movups xmmword [edi], xmm0
movsd xmm0, qword [ecx + 0x14]
movsd qword [edi + 0x14], xmm0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
movsd xmm0, qword [ecx + 0x1c]
movsd qword [edi + 0x1c], xmm0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov eax, dword [ecx + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [ecx + 0x2c]
mov dword [edi + 0x2c], eax
mov eax, dword [ecx + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [ecx + 0x28]
cmp eax, 4
jne 0x411df0
mov dword [edi + 0x28], 4
mov eax, dword [ecx + 0x2c]
test eax, eax
jle 0x411e08
mov ebx, dword [ecx + 0x28]
lea eax, [ebx + eax*4]
lea esi, [ebx + 4]
cmp eax, esi
mov dword [esp], esi
mov dword [esp + 8], eax
cmova esi, eax
mov edx, ebx
not edx
add esi, edx
mov eax, 4
mov dword [esp + 4], esi
cmp esi, 0x1c
jb 0x411ff0
mov esi, dword [esp]
cmp dword [esp + 8], esi
cmova esi, dword [esp + 8]
add edx, esi
and edx, 0xfffffffc
lea esi, [ebx + edx]
add esi, 4
cmp esi, 5
jb 0x411eed
mov esi, 0x74
add edx, esi
add edx, 0xffffff94
cmp ebx, edx
jb 0x411ff0
mov eax, dword [esp + 4]
shr eax, 2
add eax, 1
mov dword [esp + 4], eax
and eax, 0xfffffff8
mov dword [esp + 0x14], eax
lea esi, [eax - 8]
mov eax, esi
shr eax, 3
add eax, 1
mov edx, eax
and edx, 3
mov dword [esp], edx
xor edx, edx
cmp esi, 0x18
mov esi, 0x74
jb 0x411f86
and eax, 0xfffffffc
neg eax
xor edx, edx
nop dword [eax + eax]
movups xmm0, xmmword [ebx + edx*4]
movups xmm1, xmmword [ebx + edx*4 + 0x10]
movups xmmword [esi + edx*4 - 0x70], xmm0
movups xmmword [esi + edx*4 - 0x60], xmm1
movups xmm0, xmmword [ebx + edx*4 + 0x20]
movups xmm1, xmmword [ebx + edx*4 + 0x30]
movups xmmword [esi + edx*4 - 0x50], xmm0
movups xmmword [esi + edx*4 - 0x40], xmm1
movups xmm0, xmmword [ebx + edx*4 + 0x40]
movups xmm1, xmmword [ebx + edx*4 + 0x50]
movups xmmword [esi + edx*4 - 0x30], xmm0
movups xmmword [esi + edx*4 - 0x20], xmm1
movups xmm0, xmmword [ebx + edx*4 + 0x60]
movups xmm1, xmmword [ebx + edx*4 + 0x70]
movups xmmword [esi + edx*4 - 0x10], xmm0
movups xmmword [esi + edx*4], xmm1
add edx, 0x20
add eax, 4
jne 0x411f30
cmp dword [esp], 0
je 0x411fca
mov eax, 0x74
lea eax, [eax + edx*4]
add eax, 0xffffffa0
lea edx, [ebx + edx*4]
add edx, 0x10
shl dword [esp], 5
xor esi, esi
nop word cs:[eax + eax]
nop dword [eax]
movups xmm0, xmmword [edx + esi - 0x10]
movups xmm1, xmmword [edx + esi]
movups xmmword [eax + esi - 0x10], xmm0
movups xmmword [eax + esi], xmm1
add esi, 0x20
cmp dword [esp], esi
jne 0x411fb0
mov edx, dword [esp + 0x14]
cmp dword [esp + 4], edx
je 0x411e08
lea ebx, [ebx + edx*4]
mov eax, 0x74
lea eax, [eax + edx*4]
add eax, 0xffffff90
nop word cs:[eax + eax]
mov esi, dword [esp + 8]
nop word cs:[eax + eax]
nop
mov edx, dword [ebx]
mov dword [eax], edx
add ebx, 4
add eax, 4
cmp ebx, esi
jb 0x412000
jmp 0x411e08
xor eax, eax
jmp 0x4120af
mov ebx, dword [esp + 0x10]
mov esi, dword [ebx + 4]
test esi, esi
jle 0x4120a1
mov edi, dword [ebx]
shl esi, 6
add esi, edi
add edi, 0x14
jmp 0x41204c
lea eax, [edi + 0x40]
add edi, 0x2c
cmp edi, esi
mov edi, eax
jae 0x4120a1
mov eax, dword [edi + 0x14]
cmp eax, 4
je 0x412069
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
push eax
push 0
push dword [ecx + 0x18]
call sub.ntdll.dll_RtlFreeHeap
cmp dword [edi + 0xc], 0
je 0x412086
lea eax, [edi + 8]
push eax
call sub.ntdll.dll_RtlFreeUnicodeString
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
cmp dword [edi + 4], 0
je 0x412040
push edi
call sub.ntdll.dll_RtlFreeUnicodeString
mov dword [edi], 0
mov dword [edi + 4], 0
jmp 0x412040
mov eax, dword [esp + 0xc]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 8], eax
mov al, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4