Function at 0x4a7e90
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4c7be8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x38]
shl ebp, 2
mov ecx, dword [edi + ebp]
add ecx, 8
call fcn.00465170
fld dword [0x4f7c34]
fadd st(0), st(0)
fstp dword [esp + 0x10]
fsub dword [esp + 0x10]
fadd dword [0x4f7cf8]
fst dword [esp + 0x30]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x4a7ef4
fld dword [esp + 0x30]
fsub dword [esp + 0x10]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fcomp dword [0x4fc4b8]
fnstsw ax
test ah, 5
jp 0x4a7f11
fld dword [esp + 0x10]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
mov eax, dword [edi + ebp]
fld st(0)
add eax, 8
fcos
push 1
lea edx, [esp + 0x14]
push edx
fstp dword [eax]
mov eax, dword [esi + 0x38]
fsin
mov eax, dword [eax + ebp]
add eax, 0xc
fstp dword [eax]
fld dword [esp + 0x38]
mov eax, dword [esi + 0x38]
fsub dword [0x4f7c34]
fld dword [0x4f7c34]
fmul dword [0x4f2588]
fsubp st(1)
fstp dword [esp + 0x18]
mov eax, dword [eax + ebp]
mov ecx, dword [eax + 0x20]
call fcn.00424750
lea eax, [esp + 0x10]
push eax
call fcn.0040d4d0
mov ecx, eax
call fcn.004016d0
mov eax, dword [eax]
mov edi, dword [esi + 0x38]
xor ebx, ebx
mov ecx, eax
mov dword [esp + 0x28], ebx
call fcn.00401120
mov ecx, dword [edi + ebp]
add eax, 0xc8
adc edx, ebx
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x28], 0xffffffff
je 0x4a7fb9
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
mov dword [esp + 0x1c], edx
jne 0x4a7fb9
mov eax, dword [ecx]
push 1
call dword [eax]
push 0x28
call fcn.004ad909
add esp, 4
cmp eax, ebx
je 0x4a7fdd
xor ecx, ecx
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x20], ebx
mov edi, eax
jmp 0x4a7fdf
xor edi, edi
fld dword [esp + 0x30]
mov eax, dword [esi + 0x38]
fadd dword [0x4f7cf4]
mov edx, dword [eax + ebp]
mov eax, dword [edx]
mov dword [edi], eax
fst dword [esp + 0x14]
mov ecx, dword [edx + 4]
fld st(0)
mov dword [edi + 4], ecx
fcos
sub esp, 0x10
mov dword [esp + 0x20], esp
mov dword [esp + 0x28], edi
fstp dword [edi + 8]
fsin
fstp dword [edi + 0xc]
mov eax, dword [esi + 0x38]
mov edx, dword [eax + ebp]
mov eax, dword [edx + 0x10]
mov dword [edi + 0x10], eax
mov byte [edi + 0x14], bl
mov ecx, dword [esi + 0x20]
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esi + 0x24]
mov dword [eax + 4], edx
mov ecx, dword [esi + 0x28]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x2c]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.004a79c0
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x28], 1
je 0x4a8059
inc dword [eax + 4]
mov ecx, dword [edi + 0x20]
cmp ecx, ebx
mov dword [edi + 0x20], eax
je 0x4a8076
mov edx, dword [ecx + 4]
dec edx
mov eax, edx
cmp eax, ebx
mov dword [ecx + 4], edx
jne 0x4a8076
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x28], 0xffffffff
je 0x4a809f
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
mov eax, edx
mov dword [esp + 0x1c], eax
jne 0x4a809f
mov edx, dword [ecx]
push 1
call dword [edx]
fld dword [esp + 0x14]
push 1
fsub dword [0x4f7c34]
lea eax, [esp + 0x18]
fld dword [0x4f7c34]
push eax
fmul dword [0x4f2588]
fsubp st(1)
fstp dword [esp + 0x1c]
mov ecx, dword [edi + 0x20]
call fcn.00424750
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov ecx, dword [edi + 0x20]
push 0xc4164000
push edx
push eax
call fcn.00424870
mov eax, dword [edi + 0x20]
cmp eax, ebx
push 1
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
mov dword [ecx], eax
je 0x4a80f5
inc dword [eax + 4]
mov dword [esp + 0x34], 2
call fcn.0040e220
mov edx, dword [eax]
mov ecx, eax
mov dword [esp + 0x34], 0xffffffff
call dword [edx + 0x10]
lea eax, [esp + 0x14]
push eax
call fcn.0040d4d0
mov ecx, eax
call fcn.004016d0
mov ecx, dword [eax]
mov dword [esp + 0x28], 3
call fcn.00401120
add eax, 0xc8
adc edx, ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x28], 0xffffffff
je 0x4a8165
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
mov dword [esp + 0x1c], edx
jne 0x4a8165
mov eax, dword [ecx]
push 1
call dword [eax]
lea edx, [esp + 0x18]
lea ecx, [esi + 0x34]
push edx
call fcn.004a7840
push 0x28
call fcn.004ad909
add esp, 4
cmp eax, ebx
je 0x4a8196
xor ecx, ecx
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x20], ebx
mov edi, eax
jmp 0x4a8198
xor edi, edi
fld dword [esp + 0x30]
mov eax, dword [esi + 0x38]
fsub dword [0x4f7cf4]
mov edx, dword [eax + ebp]
mov eax, dword [edx]
mov dword [edi], eax
fst dword [esp + 0x18]
mov ecx, dword [edx + 4]
fld st(0)
mov dword [edi + 4], ecx
fcos
sub esp, 0x10
mov dword [esp + 0x40], esp
mov dword [esp + 0x24], edi
fstp dword [edi + 8]
fsin
fstp dword [edi + 0xc]
mov eax, dword [esi + 0x38]
mov edx, dword [eax + ebp]
mov eax, dword [edx + 0x10]
mov dword [edi + 0x10], eax
mov byte [edi + 0x14], bl
mov ecx, dword [esi + 0x20]
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esi + 0x24]
mov dword [eax + 4], edx
mov ecx, dword [esi + 0x28]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x2c]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.004a79c0
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x28], 4
je 0x4a8212
inc dword [eax + 4]
mov ecx, dword [edi + 0x20]
cmp ecx, ebx
mov dword [edi + 0x20], eax
je 0x4a822f
mov edx, dword [ecx + 4]
dec edx
mov eax, edx
cmp eax, ebx
mov dword [ecx + 4], edx
jne 0x4a822f
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x30]
or ebp, 0xffffffff
cmp eax, ebx
mov dword [esp + 0x28], ebp
je 0x4a8257
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
mov eax, edx
mov dword [esp + 0x1c], eax
jne 0x4a8257
mov edx, dword [ecx]
push 1
call dword [edx]
fld dword [esp + 0x18]
push 1
fsub dword [0x4f7c34]
lea eax, [esp + 0x34]
fld dword [0x4f7c34]
push eax
fmul dword [0x4f2588]
fsubp st(1)
fstp dword [esp + 0x38]
mov ecx, dword [edi + 0x20]
call fcn.00424750
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov ecx, dword [edi + 0x20]
push 0xc4164000
push edx
push eax
call fcn.00424870
mov eax, dword [edi + 0x20]
cmp eax, ebx
push 1
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
mov dword [ecx], eax
je 0x4a82ad
inc dword [eax + 4]
mov dword [esp + 0x34], 5
call fcn.0040e220
mov edx, dword [eax]
mov ecx, eax
mov dword [esp + 0x34], ebp
call dword [edx + 0x10]
lea eax, [esp + 0x1c]
push eax
call fcn.0040d4d0
mov ecx, eax
call fcn.004016d0
mov ecx, dword [eax]
mov dword [esp + 0x28], 6
call fcn.00401120
add eax, 0xc8
adc edx, ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x28], ebp
je 0x4a8315
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov edx, edi
cmp edx, ebx
mov dword [eax], edi
jne 0x4a8315
mov edx, dword [ecx]
push 1
call dword [edx]
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0x34]
call fcn.004a7840
mov eax, dword [esi + 0x30]
mov ecx, dword [esp + 0x20]
pop edi
add eax, 2
mov dword [esi + 0x30], eax
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 0xc