Function at 0x406860
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a194c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
lea ecx, [edi + 0x6c]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
lea edx, [edi + 0x78]
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
lea ebx, [edi + 0x84]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 4
mov dword [edi + 0x90], eax
test al, al
jns 0x4069a7
push dword [edi + 0x5c]
call fcn.0043e800
lea edx, [edi + 0x78]
test byte [edi + 0x90], 0x40
je 0x406a13
mov eax, dword [edx + 4]
mov ecx, eax
mov esi, dword [edi + 0x5c]
mov dword [ebp + 8], eax
mov eax, dword [edx]
sub ecx, eax
sar ecx, 4
cmp esi, ecx
jae 0x4069d0
shl esi, 4
add esi, eax
mov dword [edx + 4], esi
jmp 0x406a13
jbe 0x406a13
mov eax, dword [edx + 8]
sub eax, dword [edx]
sar eax, 4
cmp esi, eax
jbe 0x4069e9
push ecx
push esi
mov ecx, edx
call fcn.00445000
jmp 0x406a13
sub esi, ecx
je 0x406a0d
mov eax, esi
shl eax, 4
push eax
push 0
push dword [ebp + 8]
call fcn.00474ed0
mov eax, dword [ebp + 8]
lea edx, [edi + 0x78]
shl esi, 4
add esp, 0xc
add eax, esi
jmp 0x406a10
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
test dword [edi + 0x90], 0x100
je 0x406a72
mov ecx, dword [edi + 0x64]
mov eax, dword [edi + 0x60]
mov esi, dword [edi + 0x5c]
mov dword [ebp + 8], ecx
sub ecx, eax
sar ecx, 3
mov dword [ebp + 0xc], eax
cmp esi, ecx
jae 0x406a3c
lea eax, [eax + esi*8]
jmp 0x406a6f
jbe 0x406a72
mov eax, dword [edi + 0x68]
sub eax, dword [ebp + 0xc]
sar eax, 3
cmp esi, eax
jbe 0x406a57
push ecx
push esi
lea ecx, [edi + 0x60]
call fcn.004450b0
jmp 0x406a72
sub esi, ecx
shl esi, 3
push esi
push 0
push dword [ebp + 8]
call fcn.00474ed0
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, esi
mov dword [edi + 0x64], eax
test dword [edi + 0x90], 0x1000
je 0x406aca
mov esi, dword [edi + 0x5c]
mov eax, dword [ebx + 4]
add esi, 7
mov edx, dword [ebx]
mov ecx, eax
shr esi, 3
sub ecx, edx
mov dword [ebp + 8], eax
cmp esi, ecx
jae 0x406a9c
lea eax, [esi + edx]
jmp 0x406ac7
jbe 0x406aca
mov eax, dword [ebx + 8]
sub eax, edx
cmp esi, eax
jbe 0x406ab2
push ecx
push esi
mov ecx, ebx
call fcn.00444ef0
jmp 0x406aca
sub esi, ecx
push esi
push 0
push dword [ebp + 8]
call fcn.00474ed0
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, esi
mov dword [ebx + 4], eax
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8