Function at 0x468070
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x531088
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x659a28]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x10
push 0x10
lea ecx, [esp + 0x30]
call fcn.004a8200
lea ecx, [esp + 0x24]
xor ebp, ebp
mov dword [0x6734ac], ecx
mov ecx, 0x673494
mov dword [esp + 0x44], ebp
mov word [0x673494], bp
call fcn.0042d7e0
lea edx, [esi + 0x2c]
push ebp
mov eax, dword [edx]
mov dword [0x67349c], eax
lea eax, [esp + 0x20]
mov ecx, dword [edx + 4]
push eax
mov dword [0x6734a0], ecx
lea ecx, [esp + 0x2c]
mov edx, dword [edx + 8]
mov dword [0x6734a4], edx
call fcn.004a8cf0
movsx ecx, word [eax + 2]
movsx edx, word [eax]
movsx edi, word [eax + 6]
movsx eax, word [eax + 4]
sub edi, ecx
sub eax, edx
inc edi
inc eax
push edi
push eax
push ecx
push edx
mov ecx, 0x673490
call fcn.004924d0
mov dword [esp + 0x10], ebp
mov edi, dword [esp + 0x10]
xor ebx, ebx
mov ecx, edi
and ecx, 0x80000007
jns 0x468129
dec ecx
or ecx, 0xfffffff8
inc ecx
shl ecx, 2
mov eax, ecx
mov ecx, 0x659a50
sub ecx, eax
mov eax, edi
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dl, byte [eax + esi + 0xc]
mov al, byte [ecx]
test dl, al
jne 0x468162
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], esp
mov eax, esp
push ebp
push ebx
mov dword [eax], 0
call fcn.004a8430
inc ebx
inc edi
cmp ebx, 0x10
jl 0x46811a
mov ecx, dword [esp + 0x10]
inc ebp
add ecx, 0x10
cmp ebp, 0x10
mov dword [esp + 0x10], ecx
jl 0x468114
mov eax, dword [esi]
mov edi, dword [esp + 0x50]
and eax, 0xf0
je 0x4682b1
cmp eax, 0x10
je 0x4682b1
movsx ecx, word [esi + 0xa]
movsx eax, word [esi + 6]
sub eax, ecx
add eax, 0x10
cdq
sub eax, edx
xor edx, edx
sar eax, 1
movsx ecx, word [esi + 6]
test eax, eax
setle dl
dec edx
and edx, eax
movsx eax, word [esi + 0xa]
sub eax, ecx
mov dword [esp + 0x1c], edx
sub eax, 0xf
cdq
sub eax, edx
xor edx, edx
sar eax, 1
movsx ecx, word [esi + 6]
test eax, eax
setle dl
dec edx
and edx, eax
movsx eax, word [esi + 0xa]
sub eax, ecx
mov dword [esp + 0x18], edx
inc eax
cmp eax, 0x10
mov dword [esp + 0x50], eax
jl 0x4681f0
mov dword [esp + 0x50], 0x10
movsx edx, word [esi + 8]
movsx eax, word [esi + 4]
sub edx, eax
xor ebp, ebp
inc edx
test edx, edx
jle 0x4683c9
and edi, 0x8000000f
jns 0x468212
dec edi
or edi, 0xfffffff0
inc edi
mov ecx, dword [esi]
and ecx, 0xf0
cmp cl, 0x30
jne 0x46822c
test edi, edi
jle 0x46822c
mov edx, 0x10
sub edx, edi
mov edi, edx
movsx eax, word [esi + 8]
movsx ecx, word [esi + 4]
sub eax, ecx
mov ebx, 0x10
sub eax, ebp
sub ebx, edi
inc eax
cmp ebx, eax
jl 0x468246
mov ebx, eax
movsx eax, word [esi + 4]
movsx ecx, word [esi + 6]
mov edx, dword [esp + 0x18]
add eax, ebp
add ecx, edx
mov dx, word [esp + 0x1c]
mov word [esp + 0x10], ax
mov eax, dword [esp + 0x50]
push 0
mov word [esp + 0x16], cx
push 1
mov word [esp + 0x1e], dx
push eax
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x1c]
push ebx
lea edx, [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
mov word [esp + 0x34], di
call fcn.00474b30
movsx edx, word [esi + 8]
movsx eax, word [esi + 4]
sub edx, eax
add esp, 0x20
add edi, ebx
add ebp, ebx
inc edx
cmp ebp, edx
jl 0x468205
jmp 0x4683c9
movsx ecx, word [esi + 8]
movsx eax, word [esi + 4]
sub eax, ecx
add eax, 0x10
cdq
sub eax, edx
xor edx, edx
sar eax, 1
movsx ecx, word [esi + 4]
test eax, eax
setle dl
dec edx
and edx, eax
movsx eax, word [esi + 8]
sub eax, ecx
mov dword [esp + 0x18], edx
sub eax, 0xf
cdq
sub eax, edx
xor edx, edx
sar eax, 1
movsx ecx, word [esi + 4]
test eax, eax
setle dl
dec edx
and edx, eax
movsx eax, word [esi + 8]
sub eax, ecx
mov dword [esp + 0x1c], edx
inc eax
cmp eax, 0x10
mov dword [esp + 0x50], eax
jl 0x46830d
mov dword [esp + 0x50], 0x10
movsx edx, word [esi + 0xa]
movsx eax, word [esi + 6]
sub edx, eax
xor ebp, ebp
inc edx
test edx, edx
jle 0x4683c9
and edi, 0x8000000f
jns 0x46832f
dec edi
or edi, 0xfffffff0
inc edi
mov ecx, dword [esi]
and ecx, 0xf0
cmp cl, 0x10
jne 0x468349
test edi, edi
jle 0x468349
mov edx, 0x10
sub edx, edi
mov edi, edx
movsx eax, word [esi + 0xa]
movsx ecx, word [esi + 6]
sub eax, ecx
mov ebx, 0x10
sub eax, ebp
sub ebx, edi
inc eax
cmp ebx, eax
jl 0x468363
mov ebx, eax
movsx eax, word [esi + 4]
mov ecx, dword [esp + 0x1c]
mov dx, word [esp + 0x18]
add eax, ecx
push 0
movsx ecx, word [esi + 6]
add ecx, ebp
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x54]
mov word [esp + 0x1a], cx
push 1
mov word [esp + 0x18], dx
push ebx
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
mov word [esp + 0x32], di
call fcn.00474b30
movsx edx, word [esi + 0xa]
movsx eax, word [esi + 6]
sub edx, eax
add esp, 0x20
add edi, ebx
add ebp, ebx
inc edx
cmp ebp, edx
jl 0x468322
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], 0xffffffff
call fcn.004a8ce0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret 8