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

Disassembly:
sub esp, 0x100
mov ecx, dword [0x85ff50]
mov edx, dword [ecx + 0x34]
mov ecx, dword [0x87b7b4]
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 [0x672af8]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x4bf495
mov ecx, dword [0x696720]
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 0x4bf4ec
fsub dword [edi + 0x1e8]
fld dword [edi + 0x1e4]
fsub dword [edi + 0x1e8]
fdivp st(1)
fst dword [esp + 0x24]
fcomp dword [0x672af8]
fnstsw ax
test ah, 5
jp 0x4bf4d9
mov dword [esp + 0x24], 0
jmp 0x4bf4f6
fld dword [esp + 0x24]
fcomp dword [0x672afc]
fnstsw ax
test ah, 0x41
jne 0x4bf4f6
jmp 0x4bf4ee
fstp st(0)
mov dword [esp + 0x24], 0x3f800000
cmp word [ebp], 3
jne 0x4bf615
mov edx, dword [edi + 0x230]
cmp edx, 0xffffffff
je 0x4bf615
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.004ee780
add esp, 0x18
cmp word [esp + 0x94], 0xffff
je 0x4bf606
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 0x4bf646
mov ecx, dword [edi + 0x240]
movsx eax, ax
cmp eax, ecx
jge 0x4bf646
lea edi, [eax + eax*4]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x244]
shl edi, 5
add edi, ecx
jmp 0x4bf64b
mov edi, 0x695e20
mov eax, dword [0x719bf8]
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 [0x719bf8], eax
imul eax, eax, 0x19660d
fild dword [esp + 0x10]
fmul dword [0x672bbc]
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 [0x719bf8], eax
fchs
fstp dword [esp + 0x10]
call fcn.004cd530
cmp word [edi + 0x24], 0
fsub dword [0x672d6c]
movzx eax, word [0x719bfa]
fld dword [esp + 0x20]
fsub dword [esp + 0x10]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fmul dword [0x672bbc]
fmulp st(1)
fadd dword [esp + 0x10]
faddp st(1)
fstp dword [esp + 0x20]
je 0x4bf7ca
fld dword [0x672af8]
fld dword [edi + 0x30]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4bf73a
fld dword [esp + 0x20]
fcomp dword [edi + 0x2c]
fnstsw ax
test ah, 1
jne 0x4bf7ca
fld dword [esp + 0x20]
fcomp dword [edi + 0x30]
fnstsw ax
test ah, 0x41
jp 0x4bf7ca
fld dword [0x672af8]
fld dword [edi + 0x38]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4bf768
fld dword [esp + 0x44]
fcomp dword [edi + 0x34]
fnstsw ax
test ah, 1
jne 0x4bf7ca
fld dword [esp + 0x44]
fcomp dword [edi + 0x38]
fnstsw ax
test ah, 0x41
jp 0x4bf7ca
test byte [edi + 0x26], 1
je 0x4bf786
cmp word [ebp], 3
jne 0x4bf7ca
mov ecx, dword [ebp + 0x38]
push 3
call fcn.004f7060
add esp, 4
test eax, eax
je 0x4bf7ca
mov eax, dword [0x719bf8]
imul eax, eax, 0x19660d
add eax, 0x3c6ef35f
mov ecx, eax
shr ecx, 0x10
mov dword [esp + 0x10], ecx
mov dword [0x719bf8], eax
fild dword [esp + 0x10]
fmul dword [0x672bbc]
fcomp dword [edi + 0x28]
fnstsw ax
test ah, 1
jne 0x4bf7ca
mov dx, word [edi + 0x24]
mov eax, dword [edi + 0x48]
mov word [esp + 0x1c], dx
mov dword [esp + 0x10], eax
jmp 0x4bf7da
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 0x4bf941
test byte [ebp + 0x4c], 8
je 0x4bf941
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 0x4bf901
mov ecx, dword [edi + 0x240]
movsx eax, ax
cmp eax, ecx
jge 0x4bf901
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x244]
shl ecx, 5
add ecx, eax
mov dword [esp + 0xf0], ecx
jmp 0x4bf90c
mov dword [esp + 0xf0], 0x695e20
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.004fff80
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 0x4bfb01
mov ax, word [ebp]
test ax, ax
jne 0x4bf9c4
mov eax, dword [ebx + 0x10]
test al, 0x10
jne 0x4bf97e
or eax, 0x10
jmp 0x4bf981
and eax, 0xffffffef
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x114]
call fcn.004c0360
fld dword [ebp + 0x24]
fmul dword [0x672c30]
mov eax, dword [esp + 0x11c]
fsubr dword [eax]
fstp dword [eax]
fld dword [ebp + 0x28]
fmul dword [0x672c30]
fsubr dword [eax + 4]
fstp dword [eax + 4]
fld dword [ebp + 0x2c]
fmul dword [0x672c30]
fsubr dword [eax + 8]
fstp dword [eax + 8]
jmp 0x4bfa38
cmp ax, 3
jne 0x4bf9f5
fld dword [0x672afc]
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 0x4bfa38
fld dword [0x672af8]
mov edx, dword [esp + 0x18]
fld dword [edx + 0x1c0]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4bfaf4
or dword [ebx + 0x22c], 0x14
mov dword [esp + 0x1c], 4
mov eax, dword [0x696714]
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 [0x672af8]
fld dword [edi + 0x60]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4bfa6d
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x60]
push edx
push 0
mov ebx, esi
mov eax, esi
mov edi, 0x719bf8
call fcn.004cd1f0
mov edi, dword [esp + 0x1c]
add esp, 8
fld dword [0x672af8]
fld dword [edi + 0x64]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4bfbac
mov ecx, esi
call fcn.00401990
fld dword [0x672af8]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4bfbaa
mov eax, dword [0x719bf8]
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 [0x719bf8], eax
fild dword [esp + 0x14]
fmul dword [0x672bbc]
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 0x4bfbac
mov dword [esp + 0x1c], 1
jmp 0x4bfa21
cmp ax, 2
jne 0x4bfa21
lea edi, [esp + 0x104]
lea ecx, [esp + 0xf8]
lea edx, [ebp + 0x24]
call fcn.004cdad0
fld dword [0x672afc]
mov edi, dword [esp + 0x14]
fsub dword [edi + 0x9c]
fmul dword [esp + 0x104]
fld dword [0x672afc]
fsub dword [edi + 0x98]
fmul dword [esp + 0xf8]
fsubp st(1)
fstp dword [esi]
fld dword [0x672afc]
fsub dword [edi + 0x9c]
fmul dword [esp + 0x108]
fld dword [0x672afc]
fsub dword [edi + 0x98]
fmul dword [esp + 0xfc]
fsubp st(1)
fstp dword [esi + 4]
fld dword [0x672afc]
fsub dword [edi + 0x9c]
fmul dword [esp + 0x10c]
fld dword [0x672afc]
fsub dword [edi + 0x98]
fmul dword [esp + 0x100]
fsubp st(1)
fstp dword [esi + 8]
jmp 0x4bfa3c
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 0x4bfc1a
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 0x4bfc1a
mov eax, dword [0x85ff50]
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 0x4bfc1f
mov word [eax + 0x230], cx
jmp 0x4bfc1f
mov ecx, 1
fcomp dword [0x672bf4]
mov esi, dword [esp + 0x40]
fnstsw ax
test ah, 5
jp 0x4bfc92
mov eax, dword [esi + 0x22c]
or eax, 0x10
mov dword [esi + 0x22c], eax
fld dword [ebp + 0x2c]
fcomp dword [0x672cc4]
fnstsw ax
test ah, 0x41
jne 0x4bfc92
mov eax, dword [esi + 0x10]
fld dword [0x672af8]
or eax, 0x20
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x18]
fld dword [eax + 0x1c0]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4bfc92
mov edx, dword [0x85ff50]
mov eax, dword [edx + 0x34]
mov edx, dword [esp + 0x3c]
mov eax, dword [eax + edx + 8]
cmp word [eax + 0x230], cx
jge 0x4bfc92
mov word [eax + 0x230], cx
movsx eax, word [edi + 0x5c]
sub eax, 0
je 0x4bfcae
dec eax
jne 0x4bfcea
fld dword [esp + 0x20]
fmul dword [0x6732a4]
fstp dword [esp + 0x28]
jmp 0x4bfcb6
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], eax
fld dword [esp + 0x28]
fcomp dword [0x672af8]
fnstsw ax
test ah, 5
jp 0x4bfcd1
mov dword [esp + 0x28], 0
jmp 0x4bfcea
fld dword [esp + 0x28]
fcomp dword [0x672afc]
fnstsw ax
test ah, 0x41
jne 0x4bfcea
mov dword [esp + 0x28], 0x3f800000
fld dword [esp + 0x2c]
fcomp dword [0x672af8]
fnstsw ax
test ah, 5
jp 0x4bfd05
mov dword [esp + 0x2c], 0
jmp 0x4bfd1e
fld dword [esp + 0x2c]
fcomp dword [0x672afc]
fnstsw ax
test ah, 0x41
jne 0x4bfd1e
mov dword [esp + 0x2c], 0x3f800000
fld dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
fmul dword [0x672be0]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x60], ecx
fstp dword [esp + 0x54]
mov ecx, dword [0x69672c]
fld dword [esp + 0x34]
mov dword [esp + 0x64], edx
fmul dword [0x672be0]
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 [0x672be0]
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 0x4bfde0
fld dword [esp + 0x44]
mov edi, dword [esp + 0x28]
fcomp dword [0x6732a0]
mov ebx, dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x4bfe7c
cmp word [ebp], 3
lea eax, [esp + 0xa0]
lea edx, [esp + 0x48]
jne 0x4bfe54
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 0x695f80
push 5
push ecx
mov ecx, dword [esp + 0x34]
call fcn.004509d0
add esp, 0x24
jmp 0x4bfe7c
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 0x695f80
push 5
push 0
push ecx
push edx
call fcn.00450ae0
add esp, 0x30
mov eax, dword [esi + 0x22c]
test al, 0x20
jne 0x4bff0b
test al, 0x10
jne 0x4bfe96
cmp word [esp + 0x1c], 4
jne 0x4bff0b
cmp word [ebp], 3
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x200]
jne 0x4bfedc
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 0x695f80
push 5
push edx
mov edx, dword [ebp + 0x38]
call fcn.004509d0
add esp, 0x24
jmp 0x4bff0b
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 0x695f80
push 5
push 0
push eax
push ecx
call fcn.00450ae0
add esp, 0x30
movsx eax, word [esp + 0x1c]
sub eax, 0
je 0x4c0191
dec eax
je 0x4c0179
sub eax, 3
jne 0x4c01b7
cmp word [ebp], 3
jne 0x4bffec
cmp word [0x719648], 0
je 0x4bff66
mov ecx, dword [ebp + 0x38]
push 0xffffffffffffffff
call fcn.004f7060
add esp, 4
test eax, eax
je 0x4bff66
cmp word [eax + 0xb4], 0
jne 0x4bff66
test byte [eax + 0x106], 4
jne 0x4c01b7
cmp dword [esi + 4], 1
je 0x4c01b7
mov ecx, dword [esp + 0x18]
test byte [ecx + 0x17c], 8
je 0x4bffec
mov eax, dword [ebp + 0x38]
mov ecx, dword [0x85ff50]
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 0x4bffec
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 0x4bffcf
test byte [eax + 0x22c], 0x40
jne 0x4bffcf
mov dword [eax + 0x248], edi
mov dword [eax + 0x240], edi
inc edx
cmp dx, 6
jge 0x4bffe2
mov eax, dword [eax + 0x114]
cmp eax, 0xffffffff
jne 0x4bffa4
jmp 0x4bffec
or dword [esi + 0x22c], 0x80
mov eax, dword [0x696714]
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 [0x85ff50]
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.004f5f80
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.004f5dd0
add esp, 8
cmp word [ebp], 3
jne 0x4c0095
mov eax, dword [ebp + 0x38]
xor edx, edx
mov dx, word [ebp + 0x3e]
push edx
push ebx
push eax
call fcn.004f65e0
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x17c]
test al, 4
je 0x4c00b1
fld dword [ecx + 0x1c0]
fmul dword [0x672b00]
jmp 0x4c00fe
test al, 0x20
je 0x4c011b
fld dword [ecx + 0x1c0]
fld dword [ecx + 0x1bc]
mov ecx, dword [0x719bf8]
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 [0x719bf8], ecx
fild dword [esp + 0x10]
fmul dword [0x672bbc]
fmulp st(1)
fadd st(1)
fmul dword [0x672b00]
fxch st(1)
fstp st(0)
fcom dword [0x672afc]
fnstsw ax
test ah, 1
jne 0x4c0119
fld dword [0x672afc]
fdiv st(1)
fstp dword [esi + 0x244]
fstp st(0)
cmp word [ebp], 3
jne 0x4c01b7
mov eax, dword [esi + 4]
test eax, eax
jne 0x4c01b7
mov edi, dword [ebp + 0x38]
mov ecx, dword [0x85ff50]
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 0x4c01b7
xor ecx, ecx
mov cx, word [ebp + 0x3e]
push ecx
mov ecx, ebx
call fcn.004bf170
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 [0x85ff50]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x34]
mov eax, dword [eax + ecx + 8]
mov ecx, 1
jmp 0x4c01a7
mov edx, dword [0x85ff50]
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 0x4c01b7
mov word [eax + 0x230], cx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret