Function at 0x46a600
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x5be890
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov ebp, 0x2f
push edi
mov esi, ecx
lea edi, [ebp - 5]
mov eax, dword [esi + 0x50]
mov ebx, eax
mov dword [esi + 0x54], eax
mov dword [esp + 0x10], ebx
mov edx, dword [esi + 0x50]
movzx ecx, word [edx]
movzx eax, cx
cmp ax, 0x20
je 0x46a653
cmp ax, 9
je 0x46a653
cmp ax, 0xd
je 0x46a653
cmp ax, 0xa
jne 0x46a660
test cx, cx
je 0x46a660
add edx, 2
mov dword [esi + 0x50], edx
jmp 0x46a632
mov eax, edx
movzx ecx, word [eax]
test cx, cx
je 0x46abc1
cmp cx, bp
jne 0x46a6b6
cmp word [eax + 2], di
jne 0x46a6b6
add eax, 4
mov dword [esi + 0x50], eax
cmp word [eax], 0
je 0x46a69f
mov eax, dword [esi + 0x50]
cmp word [eax], di
jne 0x46a693
cmp word [eax + 2], bp
je 0x46a69f
add eax, 2
mov dword [esi + 0x50], eax
cmp word [eax], 0
jne 0x46a685
mov eax, dword [esi + 0x50]
cmp word [eax], di
jne 0x46a626
add eax, 4
mov dword [esi + 0x50], eax
jmp 0x46a626
movzx ecx, word [eax]
cmp cx, 0x3c
jne 0x46a7bc
lea ecx, [esp + 0x10]
add eax, 2
push ecx
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.0046a040
mov dword [esp + 0x28], 0
lea edi, [esi + 0x47]
push eax
mov ecx, edi
call fcn.00430b50
or ebp, 0xffffffff
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0x10]
call fcn.0042ee10
mov ecx, edi
call fcn.0042e910
test eax, eax
jle 0x46a719
lea eax, [ebp + 6]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ecx, esi
call fcn.0046a600
cmp eax, 0xb
jne 0x46a7b2
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.0046a040
mov dword [esp + 0x28], 1
lea ecx, [esp + 0x10]
call fcn.0042e910
test eax, eax
jle 0x46a78a
mov ecx, esi
call fcn.0046a600
cmp eax, 3
jne 0x46a78a
lea eax, [esp + 0x10]
push eax
mov ecx, edi
mov dword [esi + 0x54], ebx
call fcn.00430b50
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0x10]
call fcn.0042ee10
mov eax, 0xc
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov dword [esi + 0x50], ebx
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0x10]
call fcn.0042ee10
mov eax, 8
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, 8
jmp 0x46abc3
cmp cx, 0x3e
jne 0x46a7ed
add eax, 2
push 0x5d2374
lea ecx, [esi + 0x47]
mov dword [esi + 0x50], eax
call fcn.00431580
mov eax, 3
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push ecx
call fcn.0050faed
add esp, 4
test eax, eax
jne 0x46ab6a
mov eax, dword [esi + 0x50]
movzx ecx, word [eax]
cmp cx, 0x5f
je 0x46ab6a
cmp cx, 0x3d
jne 0x46a83f
add eax, 2
push 0x5cd85c
lea ecx, [esi + 0x47]
mov dword [esi + 0x50], eax
call fcn.00431580
mov eax, 9
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp cx, 0x2c
jne 0x46a870
add eax, 2
push 0x5cd744
lea ecx, [esi + 0x47]
mov dword [esi + 0x50], eax
call fcn.00431580
mov eax, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp cx, bp
jne 0x46a8a0
add eax, 2
push 0x5d0278
lea ecx, [esi + 0x47]
mov dword [esi + 0x50], eax
call fcn.00431580
mov eax, 0xb
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push ecx
call fcn.0050fb6e
add esp, 4
test eax, eax
jne 0x46ab13
mov eax, dword [esi + 0x50]
movzx ecx, word [eax]
cmp cx, 0x2d
je 0x46ab13
cmp cx, 0x22
jne 0x46a9f7
add eax, 2
lea ebx, [esi + 0x47]
push 0x5c9dfc
mov ecx, ebx
mov dword [esi + 0x50], eax
call fcn.00431580
mov eax, dword [esi + 0x50]
push 0x22
push eax
call fcn.005108eb
mov edi, eax
add esp, 8
test edi, edi
je 0x46a933
mov ebp, 0x5c
lea esp, [esp]
mov eax, dword [esi + 0x50]
cmp edi, eax
jbe 0x46a933
cmp word [edi - 2], bp
jne 0x46a933
mov ecx, edi
sub ecx, eax
and ecx, 0xfffffffe
cmp ecx, 4
jl 0x46a91f
cmp word [edi - 4], bp
je 0x46a933
push 0x22
add edi, 2
push edi
call fcn.005108eb
mov edi, eax
add esp, 8
test edi, edi
jne 0x46a900
mov ecx, dword [esi + 0x50]
cmp edi, ecx
jb 0x46a9d8
mov eax, edi
sub eax, ecx
sar eax, 1
push eax
push ecx
inc eax
push eax
mov ecx, ebx
call fcn.00403160
push eax
call fcn.005143b7
add esp, 0xc
mov ecx, ebx
call fcn.0041c9f0
mov edx, edi
sub edx, dword [esi + 0x50]
xor ecx, ecx
sar edx, 1
mov word [eax + edx*2], cx
or ebp, 0xffffffff
push ebp
mov ecx, ebx
call fcn.0041d190
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push ebx
call fcn.0042edc0
mov dword [esp + 0x30], 4
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x34], ebp
call fcn.0046a3d0
add esp, 0xc
mov dword [esp + 0x28], 5
push eax
mov ecx, ebx
call fcn.00430b50
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0x18]
call fcn.0042ee10
add edi, 2
mov dword [esi + 0x50], edi
lea eax, [ebp + 8]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x10]
mov dword [esi + 0x50], eax
mov eax, 8
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp cx, 0x27
jne 0x46a7b2
add eax, 2
lea ebx, [esi + 0x47]
push 0x5c9dfc
mov ecx, ebx
mov dword [esi + 0x50], eax
call fcn.00431580
mov eax, dword [esi + 0x50]
push 0x27
push eax
call fcn.005108eb
mov edi, eax
add esp, 8
test edi, edi
je 0x46aa4f
mov ebp, 0x5c
nop
cmp edi, dword [esi + 0x50]
jbe 0x46aa4f
cmp word [edi - 2], bp
jne 0x46aa4f
push 0x27
add edi, 2
push edi
call fcn.005108eb
mov edi, eax
add esp, 8
test edi, edi
jne 0x46aa30
mov ecx, dword [esi + 0x50]
cmp edi, ecx
jb 0x46aaf4
mov eax, edi
sub eax, ecx
sar eax, 1
push eax
push ecx
inc eax
push eax
mov ecx, ebx
call fcn.00403160
push eax
call fcn.005143b7
add esp, 0xc
mov ecx, ebx
call fcn.0041c9f0
mov ecx, edi
sub ecx, dword [esi + 0x50]
xor edx, edx
sar ecx, 1
mov word [eax + ecx*2], dx
or ebp, 0xffffffff
push ebp
mov ecx, ebx
call fcn.0041d190
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push ebx
call fcn.0042edc0
mov dword [esp + 0x30], 6
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x34], ebp
call fcn.0046a3d0
add esp, 0xc
mov dword [esp + 0x28], 7
push eax
mov ecx, ebx
call fcn.00430b50
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0x18]
call fcn.0042ee10
add edi, 2
mov dword [esi + 0x50], edi
lea eax, [ebp + 8]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x50], ecx
mov eax, 8
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.0046a1f0
mov dword [esp + 0x28], 3
lea edi, [esi + 0x47]
push eax
mov ecx, edi
call fcn.00430b50
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.0042ee10
mov ecx, edi
call fcn.0042e910
test eax, eax
jle 0x46a7b2
mov eax, 7
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0046a040
mov dword [esp + 0x28], 2
lea edi, [esi + 0x47]
push eax
mov ecx, edi
call fcn.00430b50
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.0042ee10
mov ecx, edi
call fcn.0042e910
test eax, eax
jle 0x46a7b2
mov eax, 6
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
xor eax, eax
mov ecx, dword [esp + 0x20]
pop edi
mov dword [esi + 0x50], ebx
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret