Function at 0x406f70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42dabd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [ecx]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [eax + 4]
push edi
xor edi, edi
mov dword [ebp - 0x14], ecx
lea edx, [esi + 0x10]
mov dword [ebp - 0x2c], eax
cmp byte [ebx + 0xd], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], edx
jne 0x40703f
mov edi, dword [edx]
mov dword [ebp - 0x18], edi
jmp 0x406fc3
mov edi, dword [ebp - 0x18]
cmp dword [esi + 0x14], 7
lea edx, [ebx + 0x10]
mov dword [ebp - 0x24], ebx
mov eax, esi
jbe 0x406fd3
mov eax, dword [esi]
cmp dword [edx + 0x14], 7
mov esi, dword [edx + 0x10]
mov dword [ebp - 0x20], esi
jbe 0x406fe1
mov edx, dword [edx]
cmp edi, esi
mov ecx, esi
cmovb ecx, edi
test ecx, ecx
je 0x40700a
sub edx, eax
mov edi, edi
movzx esi, word [eax + edx]
movzx edi, word [eax]
cmp si, di
jne 0x407018
add eax, 2
sub ecx, 1
jne 0x406ff0
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
cmp esi, edi
jae 0x407022
mov ebx, dword [ebx + 8]
xor edi, edi
mov eax, dword [ebp - 0x10]
jmp 0x40702e
sbb eax, eax
and eax, 0xfffffffe
add eax, 1
js 0x40700e
mov eax, ebx
mov edi, 1
mov ebx, dword [ebx]
mov dword [ebp - 0x10], eax
cmp byte [ebx + 0xd], 0
mov esi, dword [ebp + 0xc]
je 0x406fc0
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
jmp 0x407042
mov dword [ebp - 0x1c], edx
cmp byte [eax + 0xd], 0
jne 0x407075
add eax, 0x10
push eax
push esi
call fcn.00407d60
test al, al
jne 0x407075
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
mov dword [eax], ecx
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 eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0x3ffffff
je 0x407172
mov dword [ebp - 0x28], eax
push 0x40
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
call fcn.004069d0
mov ecx, eax
add esp, 4
xor eax, eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov eax, dword [esi]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 4]
mov dword [ecx + 0x14], eax
mov eax, dword [esi + 8]
mov dword [ecx + 0x18], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x20], eax
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x14], 7
push ecx
push edi
mov dword [eax], 0
xor eax, eax
mov word [esi], ax
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], eax
mov eax, dword [esi + 0x18]
mov dword [ecx + 0x28], eax
mov eax, dword [esi + 0x1c]
mov dword [ecx + 0x2c], eax
mov eax, dword [esi + 0x20]
mov dword [ecx + 0x30], eax
mov eax, dword [esi + 0x24]
mov dword [ecx + 0x34], eax
mov eax, dword [esi + 0x28]
mov dword [ecx + 0x38], eax
mov eax, dword [esi + 0x2c]
mov dword [ecx + 0x3c], eax
xor eax, eax
mov word [esi + 0x18], ax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 7
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov word [ecx + 0xc], 0
mov ecx, dword [ebp - 0x14]
push ebx
call fcn.00408630
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.00408840
int3