Function at 0x406700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4224e1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42e070]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov edi, 1
mov dword [esp + 0x30], edi
mov eax, dword [0x42f124]
mov edx, dword [eax + 0xc]
mov ecx, 0x42f124
call edx
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax - 0xc]
cmp ecx, ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], ecx
jle 0x406955
test ebp, ebp
jl 0x40698c
mov edx, dword [eax - 0xc]
cmp ebp, edx
jg 0x40698c
movzx eax, word [eax + ebp*2]
movzx ecx, ax
cmp cx, 0x25
jne 0x406895
lea eax, [esp + 0x3c]
lea ecx, [ebp + 1]
push eax
mov eax, 2
lea edx, [esp + 0x1c]
mov dword [esp + 0x24], ecx
call fcn.0040d330
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push 0x428b34
push eax
call fcn.00410158
add esp, 0xc
cmp eax, 1
mov eax, dword [esp + 0x18]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4067de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x406835
movzx ecx, word [esp + 0x1c]
mov eax, dword [esi]
mov ebx, dword [eax - 0xc]
mov dword [esp + 0x20], ecx
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebx + 1]
sub eax, edi
or eax, ecx
jge 0x40680d
mov ecx, edi
mov eax, esi
call fcn.0040d800
mov eax, dword [esi]
mov dx, word [esp + 0x20]
mov word [eax + ebx*2], dx
test edi, edi
jl 0x40698c
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x40698c
xor ecx, ecx
add ebp, 3
jmp 0x40693e
mov eax, dword [esp + 0x3c]
cmp ebp, dword [eax - 0xc]
jg 0x40698c
movzx ebx, word [eax + ebp*2]
mov eax, dword [esi]
mov ebp, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebp + 1]
sub eax, edi
or eax, ecx
jge 0x406868
mov ecx, edi
mov eax, esi
call fcn.0040d800
mov eax, dword [esi]
mov word [eax + ebp*2], bx
test edi, edi
jl 0x40698c
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x40698c
mov ebp, dword [esp + 0x20]
mov dword [eax - 0xc], edi
mov edx, dword [esi]
xor eax, eax
mov word [edx + edi*2], ax
jmp 0x406947
cmp ebp, edx
jg 0x40698c
movzx ecx, ax
cmp cx, 0x2b
jne 0x4068f4
mov eax, dword [esi]
mov ebx, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebx + 1]
sub eax, edi
or eax, ecx
jge 0x4068c8
mov ecx, edi
mov eax, esi
call fcn.0040d800
mov eax, dword [esi]
mov ecx, 0x20
mov word [eax + ebx*2], cx
test edi, edi
jl 0x40698c
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x40698c
mov dword [eax - 0xc], edi
mov edx, dword [esi]
xor eax, eax
mov word [edx + edi*2], ax
inc ebp
jmp 0x406947
cmp ebp, edx
jg 0x40698c
movzx ecx, ax
mov eax, dword [esi]
mov ebx, dword [eax - 0xc]
mov dword [esp + 0x20], ecx
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebx + 1]
sub eax, edi
or eax, ecx
jge 0x406925
mov ecx, edi
mov eax, esi
call fcn.0040d800
mov eax, dword [esi]
mov dx, word [esp + 0x20]
mov word [eax + ebx*2], dx
test edi, edi
jl 0x40698c
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x40698c
xor ecx, ecx
inc ebp
mov dword [eax - 0xc], edi
mov eax, dword [esi]
mov word [eax + edi*2], cx
cmp ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
jl 0x406765
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406976
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0x80070057
call fcn.00401000
int3