Function at 0x4bdad0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x100
mov ecx, dword [0x851c30]
mov edx, dword [ecx + 0x34]
mov ecx, dword [0x86cff4]
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
mov esi, eax
mov eax, dword [esp + 0x110]
and eax, 0xffff
lea eax, [eax + eax*2]
shl eax, 2
mov ebx, dword [edx + eax + 8]
mov dx, word [ebp + 0x34]
mov dword [esp + 0x38], eax
mov eax, dword [ebx]
and eax, 0xffff
shl eax, 5
push edi
mov edi, dword [eax + ecx + 0x14]
mov eax, esi
mov ecx, dword [eax]
mov word [esp + 0x10], dx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], 0x3f800000
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
call fcn.00401990
fld dword [0x66c40c]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x4bdb85
mov ecx, dword [0x690510]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
fld dword [edi + 0x1e4]
fld dword [edi + 0x1e8]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4bdbdc
fsub dword [edi + 0x1e8]
fld dword [edi + 0x1e4]
fsub dword [edi + 0x1e8]
fdivp st(1)
fst dword [esp + 0x24]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x4bdbc9
mov dword [esp + 0x24], 0
jmp 0x4bdbe6
fld dword [esp + 0x24]
fcomp dword [0x66c410]
fnstsw ax
test ah, 0x41
jne 0x4bdbe6
jmp 0x4bdbde
fstp st(0)
mov dword [esp + 0x24], 0x3f800000
cmp word [ebp], 3
jne 0x4bdd05
mov edx, dword [edi + 0x230]
cmp edx, 0xffffffff
je 0x4bdd05
xor eax, eax
mov ecx, 0x15
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x4c]
or eax, 0xffffffff
or ecx, 8
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x24]
mov word [esp + 0x94], ax
mov word [esp + 0x60], ax
mov eax, dword [ebx + 0xc0]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebx + 0xc4]
mov dword [esp + 0x88], edx
mov dx, word [ebx + 0xb8]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
lea eax, [ebp + 0x18]
mov ecx, eax
mov word [esp + 0x58], dx
mov edx, dword [ecx]
mov dword [esp + 0x70], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x74], edx
mov edx, dword [eax]
mov dword [esp + 0x78], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x64], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x68], ecx
mov eax, esi
mov ecx, dword [eax]
mov dword [esp + 0x6c], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x8c], 0x3f800000
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
call fcn.00401990
xor edx, edx
mov dx, word [ebp + 0x4e]
fstp st(0)
xor eax, eax
mov ax, word [ebp + 0x3c]
lea ecx, [ebp + 0x24]
push ecx
xor ecx, ecx
mov cx, word [ebp + 0x3e]
push edx
mov edx, dword [ebp + 0x38]
push eax
lea eax, [esp + 0x54]
push ecx
push edx
push eax
call fcn.004ea1a0
add esp, 0x18
cmp word [esp + 0x94], 0xffff
je 0x4bdcf6
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x90]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x10]
test ax, ax
mov word [ebx + 0x232], ax
jl 0x4bdd36
mov ecx, dword [edi + 0x240]
movsx eax, ax
cmp eax, ecx
jge 0x4bdd36
lea edi, [eax + eax*4]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x244]
shl edi, 5
add edi, ecx
jmp 0x4bdd3b
mov edi, 0x68fcf0
mov eax, dword [0x70ba18]
fld dword [edi + 0x64]
fchs
imul eax, eax, 0x19660d
add eax, 0x3c6ef35f
mov edx, eax
shr edx, 0x10
mov dword [esp + 0x10], edx
mov dword [0x70ba18], eax
imul eax, eax, 0x19660d
fild dword [esp + 0x10]
fmul dword [0x66c4cc]
fld st(1)
fchs
fmulp st(1)
mov edx, dword [edi + 0x60]
lea ecx, [ebp + 0x24]
mov dword [esp + 0x20], edx
fadd st(1)
add eax, 0x3c6ef35f
fld dword [ecx + 8]
mov edx, esi
fmul dword [esi + 8]
mov dword [esp + 0x14], edi
fsubp st(1)
fld dword [ecx + 4]
fmul dword [esi + 4]
fsubp st(1)
fld dword [ecx]
fmul dword [esi]
fsubp st(1)
fstp dword [esp + 0x44]
fstp st(0)
fld dword [edi + 0x60]
mov dword [0x70ba18], eax
fchs
fstp dword [esp + 0x10]
call fcn.004cb830
cmp word [edi + 0x24], 0
fsub dword [0x66c67c]
movzx eax, word [0x70ba1a]
fld dword [esp + 0x20]
fsub dword [esp + 0x10]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fmul dword [0x66c4cc]
fmulp st(1)
fadd dword [esp + 0x10]
faddp st(1)
fstp dword [esp + 0x20]
je 0x4bdeba
fld dword [0x66c40c]
fld dword [edi + 0x30]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4bde2a
fld dword [esp + 0x20]
fcomp dword [edi + 0x2c]
fnstsw ax
test ah, 1
jne 0x4bdeba
fld dword [esp + 0x20]
fcomp dword [edi + 0x30]
fnstsw ax
test ah, 0x41
jp 0x4bdeba
fld dword [0x66c40c]
fld dword [edi + 0x38]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4bde58
fld dword [esp + 0x44]
fcomp dword [edi + 0x34]
fnstsw ax
test ah, 1
jne 0x4bdeba
fld dword [esp + 0x44]
fcomp dword [edi + 0x38]
fnstsw ax
test ah, 0x41
jp 0x4bdeba
test byte [edi + 0x26], 1
je 0x4bde76
cmp word [ebp], 3
jne 0x4bdeba
mov ecx, dword [ebp + 0x38]
push 3
call fcn.004f2aa0
add esp, 4
test eax, eax
je 0x4bdeba
mov eax, dword [0x70ba18]
imul eax, eax, 0x19660d
add eax, 0x3c6ef35f
mov ecx, eax
shr ecx, 0x10
mov dword [esp + 0x10], ecx
mov dword [0x70ba18], eax
fild dword [esp + 0x10]
fmul dword [0x66c4cc]
fcomp dword [edi + 0x28]
fnstsw ax
test ah, 1
jne 0x4bdeba
mov dx, word [edi + 0x24]
mov eax, dword [edi + 0x48]
mov word [esp + 0x1c], dx
mov dword [esp + 0x10], eax
jmp 0x4bdeca
mov cx, word [edi + 2]
mov edx, dword [edi + 0x10]
mov word [esp + 0x1c], cx
mov dword [esp + 0x10], edx
cmp word [ebp], 2
jne 0x4be031
test byte [ebp + 0x4c], 8
je 0x4be031
xor eax, eax
mov ecx, 0x15
lea edi, [esp + 0xa0]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x230]
mov edx, dword [esp + 0xa4]
mov dword [esp + 0xa0], eax
or eax, 0xffffffff
mov word [esp + 0xec], ax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov word [esp + 0xb0], ax
mov word [esp + 0xb8], ax
or edx, 8
lea eax, [ebp + 0x18]
mov ecx, eax
mov dword [esp + 0xa4], edx
mov edx, dword [ecx]
mov dword [esp + 0xc8], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0xcc], edx
mov edx, dword [eax]
mov dword [esp + 0xd0], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0xbc], edx
mov edx, dword [eax + 8]
mov dword [esp + 0xc0], ecx
mov eax, esi
mov ecx, dword [eax]
mov dword [esp + 0xc4], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0xd4], ecx
lea ecx, [esp + 0xd4]
mov dword [esp + 0xe0], 0x3f800000
mov dword [esp + 0xe4], 0x3f800000
mov dword [esp + 0xd8], edx
mov dword [esp + 0xdc], eax
call fcn.00401990
mov ax, word [ebp + 0x34]
test ax, ax
fstp st(0)
mov word [esp + 0xec], ax
jl 0x4bdff1
mov ecx, dword [edi + 0x240]
movsx eax, ax
cmp eax, ecx
jge 0x4bdff1
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x244]
shl ecx, 5
add ecx, eax
mov dword [esp + 0xf0], ecx
jmp 0x4bdffc
mov dword [esp + 0xf0], 0x68fcf0
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x44]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xb4], edx
movzx dx, byte [ebp + 0x4d]
push ecx
lea ebx, [esp + 0xa4]
mov dword [esp + 0xbc], eax
push edx
call fcn.004fb9c0
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x48]
add esp, 8
mov ecx, dword [esp + 0x11c]
lea eax, [ebp + 0x18]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x1c]
cmp ax, 3
jne 0x4be1f1
mov ax, word [ebp]
test ax, ax
jne 0x4be0b4
mov eax, dword [ebx + 0x10]
test al, 0x10
jne 0x4be06e
or eax, 0x10
jmp 0x4be071
and eax, 0xffffffef
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x114]
call fcn.004bea50
fld dword [ebp + 0x24]
fmul dword [0x66c540]
mov eax, dword [esp + 0x11c]
fsubr dword [eax]
fstp dword [eax]
fld dword [ebp + 0x28]
fmul dword [0x66c540]
fsubr dword [eax + 4]
fstp dword [eax + 4]
fld dword [ebp + 0x2c]
fmul dword [0x66c540]
fsubr dword [eax + 8]
fstp dword [eax + 8]
jmp 0x4be128
cmp ax, 3
jne 0x4be0e5
fld dword [0x66c410]
fsub dword [edi + 0x90]
fld st(0)
fmul dword [esi]
fstp dword [esi]
fld st(0)
fmul dword [esi + 4]
fstp dword [esi + 4]
fmul dword [esi + 8]
fstp dword [esi + 8]
mov ecx, dword [ebp + 0x38]
mov dword [ebx + 0x234], ecx
jmp 0x4be128
fld dword [0x66c40c]
mov edx, dword [esp + 0x18]
fld dword [edx + 0x1c0]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4be1e4
or dword [ebx + 0x22c], 0x14
mov dword [esp + 0x1c], 4
mov eax, dword [0x690504]
mov edx, dword [eax]
mov ecx, esi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov edi, dword [esp + 0x14]
fld dword [0x66c40c]
fld dword [edi + 0x60]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4be15d
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x60]
push edx
push 0
mov ebx, esi
mov eax, esi
mov edi, 0x70ba18
call fcn.004cb4f0
mov edi, dword [esp + 0x1c]
add esp, 8
fld dword [0x66c40c]
fld dword [edi + 0x64]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4be29c
mov ecx, esi
call fcn.00401990
fld dword [0x66c40c]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4be29a
mov eax, dword [0x70ba18]
fld dword [edi + 0x64]
fld dword [edi + 0x64]
imul eax, eax, 0x19660d
fchs
fxch st(1)
fsub st(1)
add eax, 0x3c6ef35f
mov ecx, eax
shr ecx, 0x10
mov dword [esp + 0x14], ecx
mov dword [0x70ba18], eax
fild dword [esp + 0x14]
fmul dword [0x66c4cc]
fmulp st(1)
fadd st(1)
faddp st(2)
fstp st(0)
fld st(0)
fmul dword [esi]
fstp dword [esi]
fld st(0)
fmul dword [esi + 4]
fstp dword [esi + 4]
fmul dword [esi + 8]
fstp dword [esi + 8]
jmp 0x4be29c
mov dword [esp + 0x1c], 1
jmp 0x4be111
cmp ax, 2
jne 0x4be111
lea edi, [esp + 0x104]
lea ecx, [esp + 0xf8]
lea edx, [ebp + 0x24]
call fcn.004cbdd0
fld dword [0x66c410]
mov edi, dword [esp + 0x14]
fsub dword [edi + 0x9c]
fmul dword [esp + 0x104]
fld dword [0x66c410]
fsub dword [edi + 0x98]
fmul dword [esp + 0xf8]
fsubp st(1)
fstp dword [esi]
fld dword [0x66c410]
fsub dword [edi + 0x9c]
fmul dword [esp + 0x108]
fld dword [0x66c410]
fsub dword [edi + 0x98]
fmul dword [esp + 0xfc]
fsubp st(1)
fstp dword [esi + 4]
fld dword [0x66c410]
fsub dword [edi + 0x9c]
fmul dword [esp + 0x10c]
fld dword [0x66c410]
fsub dword [edi + 0x98]
fmul dword [esp + 0x100]
fsubp st(1)
fstp dword [esi + 8]
jmp 0x4be12c
fstp st(0)
cmp word [esp + 0x1c], 4
fld dword [esi + 8]
fld dword [esi + 4]
fld dword [esi]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fst dword [esp + 0x14]
fstp st(3)
fstp st(0)
fstp st(0)
je 0x4be30a
mov edx, dword [esp + 0x18]
fld dword [edx + 0x1c4]
fld st(0)
fmul st(1)
fld dword [esp + 0x14]
fcompp
fnstsw ax
fstp st(0)
test ah, 5
jp 0x4be30a
mov eax, dword [0x851c30]
mov ecx, dword [eax + 0x34]
mov edx, dword [esp + 0x3c]
mov eax, dword [ecx + edx + 8]
mov ecx, 1
cmp word [eax + 0x230], cx
jge 0x4be30f
mov word [eax + 0x230], cx
jmp 0x4be30f
mov ecx, 1
fcomp dword [0x66c504]
mov esi, dword [esp + 0x40]
fnstsw ax
test ah, 5
jp 0x4be382
mov eax, dword [esi + 0x22c]
or eax, 0x10
mov dword [esi + 0x22c], eax
fld dword [ebp + 0x2c]
fcomp dword [0x66c5d4]
fnstsw ax
test ah, 0x41
jne 0x4be382
mov eax, dword [esi + 0x10]
fld dword [0x66c40c]
or eax, 0x20
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x18]
fld dword [eax + 0x1c0]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4be382
mov edx, dword [0x851c30]
mov eax, dword [edx + 0x34]
mov edx, dword [esp + 0x3c]
mov eax, dword [eax + edx + 8]
cmp word [eax + 0x230], cx
jge 0x4be382
mov word [eax + 0x230], cx
movsx eax, word [edi + 0x5c]
sub eax, 0
je 0x4be39e
dec eax
jne 0x4be3da
fld dword [esp + 0x20]
fmul dword [0x66cbbc]
fstp dword [esp + 0x28]
jmp 0x4be3a6
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], eax
fld dword [esp + 0x28]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x4be3c1
mov dword [esp + 0x28], 0
jmp 0x4be3da
fld dword [esp + 0x28]
fcomp dword [0x66c410]
fnstsw ax
test ah, 0x41
jne 0x4be3da
mov dword [esp + 0x28], 0x3f800000
fld dword [esp + 0x2c]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x4be3f5
mov dword [esp + 0x2c], 0
jmp 0x4be40e
fld dword [esp + 0x2c]
fcomp dword [0x66c410]
fnstsw ax
test ah, 0x41
jne 0x4be40e
mov dword [esp + 0x2c], 0x3f800000
fld dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
fmul dword [0x66c4f0]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x60], ecx
fstp dword [esp + 0x54]
mov ecx, dword [0x69051c]
fld dword [esp + 0x34]
mov dword [esp + 0x64], edx
fmul dword [0x66c4f0]
mov edx, dword [ecx]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 4]
fstp dword [esp + 0x58]
mov dword [esp + 0x7c], eax
fld dword [esp + 0x38]
lea eax, [ebp + 0x24]
fmul dword [0x66c4f0]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x78], edx
mov edx, eax
fstp dword [esp + 0x5c]
mov dword [esp + 0x80], ecx
fld dword [esp + 0x38]
mov ecx, dword [edx]
fmul dword [eax + 8]
mov dword [esp + 0x48], ecx
fld dword [esp + 0x34]
mov ecx, dword [edx + 4]
fmul dword [eax + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], ecx
faddp st(1)
mov edx, 5
fld dword [esp + 0x30]
fmul dword [eax]
faddp st(1)
fadd st(0), st(0)
fld st(0)
fmul dword [eax]
fsubr dword [esp + 0x30]
fstp dword [esp + 0x6c]
fld st(0)
fmul dword [eax + 4]
fsubr dword [esp + 0x34]
fstp dword [esp + 0x70]
fmul dword [eax + 8]
lea eax, [esp + 0xa0]
fsubr dword [esp + 0x38]
fstp dword [esp + 0x74]
lea ecx, [ebp + 0x18]
mov ebx, dword [ecx]
mov edi, eax
mov dword [edi], ebx
mov ebx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [edi + 4], ebx
add eax, 0xc
dec edx
mov dword [edi + 8], ecx
jne 0x4be4d0
fld dword [esp + 0x44]
mov edi, dword [esp + 0x28]
fcomp dword [0x66cbb8]
mov ebx, dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x4be56c
cmp word [ebp], 3
lea eax, [esp + 0xa0]
lea edx, [esp + 0x48]
jne 0x4be544
push 0
push 0
push ebx
push edi
push edx
mov edx, dword [ebp + 0x38]
xor ecx, ecx
mov cx, word [ebp + 0x3e]
push eax
mov eax, dword [esp + 0x12c]
push 0x68fe50
push 5
push ecx
mov ecx, dword [esp + 0x34]
call fcn.004508f0
add esp, 0x24
jmp 0x4be56c
mov ecx, dword [esp + 0x114]
push 1
push 0
push 0
push ebx
push edi
push edx
mov edx, dword [esp + 0x28]
push eax
push 0x68fe50
push 5
push 0
push ecx
push edx
call fcn.00450a00
add esp, 0x30
mov eax, dword [esi + 0x22c]
test al, 0x20
jne 0x4be5fb
test al, 0x10
jne 0x4be586
cmp word [esp + 0x1c], 4
jne 0x4be5fb
cmp word [ebp], 3
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x200]
jne 0x4be5cc
push 0
push 0
push ebx
push edi
lea edx, [esp + 0x58]
push edx
xor edx, edx
mov dx, word [ebp + 0x3e]
lea eax, [esp + 0xb4]
push eax
mov eax, dword [esp + 0x12c]
push 0x68fe50
push 5
push edx
mov edx, dword [ebp + 0x38]
call fcn.004508f0
add esp, 0x24
jmp 0x4be5fb
push 1
push 0
push 0
push ebx
push edi
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x12c]
lea edx, [esp + 0xb8]
push edx
push 0x68fe50
push 5
push 0
push eax
push ecx
call fcn.00450a00
add esp, 0x30
movsx eax, word [esp + 0x1c]
sub eax, 0
je 0x4be881
dec eax
je 0x4be869
sub eax, 3
jne 0x4be8a7
cmp word [ebp], 3
jne 0x4be6dc
cmp word [0x70b460], 0
je 0x4be656
mov ecx, dword [ebp + 0x38]
push 0xffffffffffffffff
call fcn.004f2aa0
add esp, 4
test eax, eax
je 0x4be656
cmp word [eax + 0xb4], 0
jne 0x4be656
test byte [eax + 0x106], 4
jne 0x4be8a7
cmp dword [esi + 4], 1
je 0x4be8a7
mov ecx, dword [esp + 0x18]
test byte [ecx + 0x17c], 8
je 0x4be6dc
mov eax, dword [ebp + 0x38]
mov ecx, dword [0x851c30]
and eax, 0xffff
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0x34]
mov edx, dword [eax + edx*4 + 8]
mov eax, dword [edx + 0x118]
xor edi, edi
xor edx, edx
cmp eax, 0xffffffff
je 0x4be6dc
mov ebx, dword [ecx + 0x34]
and eax, 0xffff
lea eax, [eax + eax*2]
mov eax, dword [ebx + eax*4 + 8]
mov ebx, dword [eax]
cmp ebx, dword [esi]
jne 0x4be6bf
test byte [eax + 0x22c], 0x40
jne 0x4be6bf
mov dword [eax + 0x248], edi
mov dword [eax + 0x240], edi
inc edx
cmp dx, 6
jge 0x4be6d2
mov eax, dword [eax + 0x114]
cmp eax, 0xffffffff
jne 0x4be694
jmp 0x4be6dc
or dword [esi + 0x22c], 0x80
mov eax, dword [0x690504]
mov ebx, dword [esi + 0x10]
mov edx, eax
mov edi, dword [edx]
lea ecx, [esi + 0x68]
mov dword [ecx], edi
mov edi, dword [edx + 4]
mov dword [ecx + 4], edi
mov edx, dword [edx + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax]
lea ecx, [esi + 0x8c]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x22c]
mov ecx, dword [0x851c30]
or eax, 8
mov dword [esi + 0x22c], eax
mov eax, dword [esp + 0x3c]
or ebx, 0x20
mov dword [esi + 0x10], ebx
mov edx, dword [ecx + 0x34]
mov edi, dword [edx + eax + 8]
mov ebx, dword [esp + 0x114]
mov eax, ebx
call fcn.004f19c0
mov eax, dword [esp + 0x11c]
mov ecx, dword [eax]
add edi, 0x5c
mov dword [edi], ecx
mov edx, dword [eax + 4]
lea ecx, [ebp + 0xc]
mov dword [edi + 4], edx
mov eax, dword [eax + 8]
push ecx
push ebx
mov dword [edi + 8], eax
call fcn.004f1810
add esp, 8
cmp word [ebp], 3
jne 0x4be785
mov eax, dword [ebp + 0x38]
xor edx, edx
mov dx, word [ebp + 0x3e]
push edx
push ebx
push eax
call fcn.004f2020
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x17c]
test al, 4
je 0x4be7a1
fld dword [ecx + 0x1c0]
fmul dword [0x66c414]
jmp 0x4be7ee
test al, 0x20
je 0x4be80b
fld dword [ecx + 0x1c0]
fld dword [ecx + 0x1bc]
mov ecx, dword [0x70ba18]
imul ecx, ecx, 0x19660d
fxch st(1)
fsub st(1)
add ecx, 0x3c6ef35f
mov edx, ecx
shr edx, 0x10
mov dword [esp + 0x10], edx
mov dword [0x70ba18], ecx
fild dword [esp + 0x10]
fmul dword [0x66c4cc]
fmulp st(1)
fadd st(1)
fmul dword [0x66c414]
fxch st(1)
fstp st(0)
fcom dword [0x66c410]
fnstsw ax
test ah, 1
jne 0x4be809
fld dword [0x66c410]
fdiv st(1)
fstp dword [esi + 0x244]
fstp st(0)
cmp word [ebp], 3
jne 0x4be8a7
mov eax, dword [esi + 4]
test eax, eax
jne 0x4be8a7
mov edi, dword [ebp + 0x38]
mov ecx, dword [0x851c30]
mov edx, dword [ecx + 0x34]
mov eax, edi
and eax, 0xffff
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*4 + 8]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4be8a7
xor ecx, ecx
mov cx, word [ebp + 0x3e]
push ecx
mov ecx, ebx
call fcn.004bd860
mov eax, dword [esi + 0x10]
add esp, 4
or eax, 0x4000000
mov dword [esi + 0x10], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
mov edx, dword [0x851c30]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x34]
mov eax, dword [eax + ecx + 8]
mov ecx, 1
jmp 0x4be897
mov edx, dword [0x851c30]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x34]
mov eax, dword [eax + ecx + 8]
mov ecx, 2
cmp word [eax + 0x230], cx
jge 0x4be8a7
mov word [eax + 0x230], cx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret