Function at 0x409370
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40962c
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0xc]
mov edx, 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x200]
call fcn.0040216c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1fc]
mov eax, dword [eax + 0x3c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x204]
sub eax, dword [edx + 0x3c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x210]
sub eax, dword [edx + 0x3c]
mov ecx, 3
cdq
idiv ecx
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x200]
call fcn.004020ec
mov edx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x200]
call fcn.004020e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x200]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x200]
add edx, dword [eax + 0x38]
add edx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x204]
call fcn.004020e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x200]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x204]
call fcn.004020ec
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2c4], 0
je 0x4094e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1fc]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x200]
sub edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x200]
sub edx, dword [eax + 0x38]
sub edx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x208]
sub edx, dword [eax + 0x38]
sub edx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x204]
call fcn.004020f4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x204]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x204]
add edx, dword [eax + 0x38]
inc edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x208]
call fcn.004020e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x200]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x208]
call fcn.004020ec
jmp 0x409519
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1fc]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x200]
sub edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x200]
sub edx, dword [eax + 0x38]
sub edx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x204]
call fcn.004020f4
lea ecx, [ebp - 0x10]
mov edx, 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2ac]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20c]
call fcn.0040216c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x200]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20c]
call fcn.004020e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x200]
mov edx, dword [eax + 0x34]
add edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x204]
add edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20c]
call fcn.004020ec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x204]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
call fcn.004020e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20c]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
call fcn.004020ec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x204]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
call fcn.004020f4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2c4], 0
je 0x409611
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x208]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x214]
call fcn.004020e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20c]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x214]
call fcn.004020ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409633
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00401138
ret