Function at 0x406e40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e05d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov edx, dword [ecx]
push ebx
push esi
push edi
mov eax, dword [edx + 4]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], eax
cmp byte [eax + 0xd], 0
mov dword [ebp - 0x14], edi
jne 0x406f30
mov ecx, dword [ebp + 0xc]
mov ebx, eax
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x10], esi
jmp 0x406e93
mov esi, dword [ebp - 0x10]
cmp dword [ecx + 0x14], 8
lea edi, [ebx + 0x10]
mov dword [ebp - 0x1c], ebx
mov eax, ecx
jb 0x406ea3
mov eax, dword [ecx]
cmp dword [edi + 0x14], 8
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x20], edx
jb 0x406eb1
mov edi, dword [edi]
cmp esi, edx
mov ecx, edx
cmovb ecx, esi
test ecx, ecx
je 0x406ef6
movzx edx, word [edi]
movzx esi, word [eax]
cmp dx, si
jb 0x406efa
sub edi, eax
cmp dx, si
ja 0x406ee9
cmp ecx, 1
je 0x406ef0
movzx edx, word [edi + eax + 2]
add eax, 2
dec ecx
movzx esi, word [eax]
cmp dx, si
jae 0x406ecc
or eax, 0xffffffff
jmp 0x406f03
mov eax, 1
jmp 0x406f03
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x10]
cmp esi, edx
jbe 0x406eff
or eax, 0xffffffff
jmp 0x406f03
sbb eax, eax
neg eax
shr eax, 0x1f
test al, al
je 0x406f14
mov ebx, dword [ebx + 8]
xor esi, esi
mov edi, dword [ebp - 0x14]
jmp 0x406f20
mov edi, ebx
mov esi, 1
mov ebx, dword [ebx]
mov dword [ebp - 0x14], edi
cmp byte [ebx + 0xd], 0
mov ecx, dword [ebp + 0xc]
je 0x406e90
mov ecx, dword [ebp - 0x18]
cmp byte [edi + 0xd], 0
mov ebx, dword [ebp + 0xc]
jne 0x406f63
lea eax, [edi + 0x10]
push eax
push ebx
call fcn.004079d0
test al, al
jne 0x406f63
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 0
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp - 0x18]
cmp dword [edi + 4], 0x3ffffff
je 0x407057
mov dword [ebp - 0x24], edi
push 0x40
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
call fcn.00406a20
mov edx, eax
add esp, 4
mov dword [edx + 0x10], 0
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
mov ecx, dword [ebx]
mov dword [edx + 0x10], ecx
mov ecx, dword [ebx + 4]
mov dword [edx + 0x14], ecx
mov ecx, edi
mov eax, dword [ebx + 8]
mov dword [edx + 0x18], eax
mov eax, dword [ebx + 0xc]
mov dword [edx + 0x1c], eax
mov eax, dword [ebx + 0x10]
mov dword [edx + 0x20], eax
mov eax, dword [ebx + 0x14]
mov dword [edx + 0x24], eax
xor eax, eax
mov word [ebx], ax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov dword [edx + 0x28], eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov eax, dword [ebx + 0x18]
mov dword [edx + 0x28], eax
mov eax, dword [ebx + 0x1c]
mov dword [edx + 0x2c], eax
mov eax, dword [ebx + 0x20]
mov dword [edx + 0x30], eax
mov eax, dword [ebx + 0x24]
mov dword [edx + 0x34], eax
mov eax, dword [ebx + 0x28]
mov dword [edx + 0x38], eax
mov eax, dword [ebx + 0x2c]
mov dword [edx + 0x3c], eax
xor eax, eax
mov word [ebx + 0x18], ax
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 7
push edx
mov dword [edx], eax
push esi
push dword [ebp - 0x1c]
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov word [edx + 0xc], 0
call fcn.004082f0
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, ecx
mov byte [ecx + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
call fcn.00408520
int3