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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x124c
call fcn.00628480
mov al, byte [0x689470]
test al, al
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [0x746eb8]
push esi
push edi
mov dword [esp + 0xe8], ebx
je 0x5014d3
mov edx, dword [ebx + 0x40]
mov edi, dword [0x719bfc]
lea eax, [ecx + ecx*2]
lea eax, [edx + eax*4]
mov edx, dword [0x746ebc]
mov edx, dword [edx + 0xa8]
mov dword [esp + 0xfc], eax
movsx eax, word [eax + 0xa]
lea eax, [eax + eax*4]
movsx eax, word [edx + eax*4 + 0x12]
mov edx, dword [0x746ec0]
imul eax, eax, 0x374
mov edx, dword [edx + 0x198]
lea eax, [eax + edx + 0x2d4]
mov dword [esp + 0x88], eax
mov byte [esp + 0x13], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0x258], ecx
mov dword [esp + 0x84], 1
mov eax, dword [esp + 0xe4]
movsx ecx, ax
mov esi, dword [esp + ecx*4 + 0x258]
inc eax
mov dword [esp + 0xe4], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x11c], eax
lea edx, [esi + esi*2]
mov ecx, dword [eax + edx*4 + 4]
lea eax, [eax + edx*4]
mov edx, dword [eax]
mov eax, edx
and eax, 0x7fffffff
shl eax, 4
add eax, dword [ebx + 0x10]
test edx, edx
mov dword [esp + 0xf0], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x5c], 0
jns 0x500348
fld dword [eax]
fchs
fstp dword [esp + 0x6c]
fld dword [eax + 4]
fchs
fstp dword [esp + 0x70]
fld dword [eax + 8]
fchs
fstp dword [esp + 0x74]
fld dword [eax + 0xc]
fchs
fstp dword [esp + 0x78]
jmp 0x500363
mov edx, dword [eax]
mov dword [esp + 0x6c], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x70], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
fld dword [esp + 0x6c]
fabs
fld dword [esp + 0x70]
fabs
fld dword [esp + 0x74]
fabs
fcom st(1)
fnstsw ax
test ah, 1
jne 0x500392
fcomp st(2)
fnstsw ax
test ah, 1
jne 0x500394
fstp st(0)
mov eax, 2
fstp st(0)
jmp 0x5003a8
fstp st(0)
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 1
jne 0x5003a6
mov eax, 1
jmp 0x5003a8
xor eax, eax
movsx eax, ax
mov dword [esp + 0x44], eax
fld dword [esp + eax*4 + 0x6c]
fcomp dword [0x672af8]
fnstsw ax
test ah, 0x41
jne 0x5003c4
mov al, 1
jmp 0x5003c6
xor al, al
mov edx, dword [ebx + 0x4c]
mov ebx, dword [ebx + 0x58]
movzx eax, al
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x44]
lea eax, [eax + edx*2]
shl eax, 2
xor edx, edx
mov dx, word [eax + 0x65c2ec]
mov dword [esp + 0xf4], eax
movsx eax, word [eax + 0x65c2ee]
mov dword [esp + 0x4c], eax
movsx eax, ax
mov dword [esp + 0x98], edx
movsx edx, dx
shl edx, 2
shl eax, 2
mov dword [esp + 0x80], ebx
mov dword [esp + 0x48], edx
mov dword [esp + 0x1c], eax
jmp 0x500430
mov ebx, dword [esp + 0x80]
mov esi, dword [esp + 0xf0]
lea ebx, [ebx]
lea eax, [ecx + ecx*2]
mov ecx, dword [esp + 0x7c]
lea edx, [ecx + eax*8]
cmp dword [edx + 0x14], esi
sete al
xor ecx, ecx
test al, al
sete cl
mov byte [esp + 0x1b], al
mov dword [esp + 0xec], edx
mov eax, ecx
mov ecx, dword [edx + eax*4]
mov eax, dword [edx + eax*4 + 0x10]
shl ecx, 4
add ecx, ebx
cmp word [esp + 0x5c], 0
mov dword [esp + 0x118], eax
jne 0x500725
movzx eax, byte [esp + 0x1b]
mov edx, dword [edx + eax*4]
mov eax, dword [ebp + 0x10]
shl edx, 4
add edx, ebx
cmp esi, eax
mov dword [esp + 0x14], edx
jne 0x500516
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x48]
fld dword [edx + eax + 0x28]
mov edx, dword [esp + 0x1c]
fld dword [edx + eax + 0x28]
movsx edx, word [esp + 0x98]
movsx esi, word [esp + 0x4c]
fld st(1)
mov ebx, dword [esp + 0x44]
shl edx, 2
shl esi, 2
fstp dword [esp + edx + 0x8c]
fst dword [esp + esi + 0x8c]
fld dword [esp + ebx*4 + 0x6c]
fabs
fcomp qword [0x672c10]
fnstsw ax
test ah, 5
jp 0x5004f3
mov edx, dword [esp + 0x14]
fstp st(0)
fstp st(0)
fld dword [0x672af8]
fstp dword [esp + ebx*4 + 0x8c]
jmp 0x500535
fxch st(1)
fmul dword [esp + edx + 0x6c]
mov edx, dword [esp + 0x14]
fsubr dword [esp + 0x78]
fxch st(1)
fmul dword [esp + esi + 0x6c]
fsubp st(1)
fdiv dword [esp + ebx*4 + 0x6c]
fstp dword [esp + ebx*4 + 0x8c]
jmp 0x500535
mov eax, ecx
mov esi, dword [eax]
mov dword [esp + 0x8c], esi
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], eax
fld dword [edx]
fsub dword [ecx]
fstp dword [esp + 0x2c]
fld dword [edx + 4]
fsub dword [ecx + 4]
fstp dword [esp + 0x30]
fld dword [edx + 8]
fsub dword [ecx + 8]
fstp dword [esp + 0x34]
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
faddp st(1)
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
faddp st(1)
fsqrt
fld st(0)
fabs
fcomp qword [0x672c10]
fnstsw ax
test ah, 5
jnp 0x5005a4
fdivr dword [0x672afc]
fld dword [esp + 0x2c]
fmul st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fmul st(1)
fstp dword [esp + 0x34]
fstp st(0)
mov edx, dword [esp + 0x2c]
fld dword [esp + 0x30]
mov eax, dword [esp + 0x30]
fmul dword [esp + 0x74]
mov dword [esp + 0x9c], edx
fld dword [esp + 0x34]
mov edx, dword [esp + 0x34]
fmul dword [esp + 0x70]
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa0], eax
fsubp st(1)
fstp dword [esp + 0x108]
mov eax, dword [esp + 0x108]
fld dword [esp + 0x34]
mov dword [esp + 0xc4], eax
fmul dword [esp + 0x6c]
fld dword [esp + 0x74]
fmul dword [esp + 0x2c]
fsubp st(1)
fstp dword [esp + 0x10c]
mov edx, dword [esp + 0x10c]
fld dword [esp + 0x70]
mov dword [esp + 0xc8], edx
fmul dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul dword [esp + 0x6c]
fsubp st(1)
fstp dword [esp + 0x110]
mov eax, dword [esp + 0x110]
fld dword [esp + 0xa4]
mov dword [esp + 0xcc], eax
fmul dword [esp + 0x94]
fld dword [esp + 0xa0]
fmul dword [esp + 0x90]
faddp st(1)
fld dword [esp + 0x9c]
fmul dword [esp + 0x8c]
faddp st(1)
fstp dword [esp + 0xa8]
fld dword [esp + 0xcc]
fmul dword [esp + 0x94]
fld dword [esp + 0xc8]
fmul dword [esp + 0x90]
faddp st(1)
fld dword [esp + 0xc4]
fmul dword [esp + 0x8c]
faddp st(1)
fstp dword [esp + 0xd0]
fld dword [esp + 0xa4]
fmul dword [ecx + 8]
fld dword [esp + 0x9c]
fmul dword [ecx]
faddp st(1)
fld dword [esp + 0xa0]
fmul dword [ecx + 4]
faddp st(1)
fsub dword [esp + 0xa8]
fstp dword [esp + 0xd8]
fld dword [esp + 0xcc]
mov edx, dword [esp + 0xd8]
fmul dword [ecx + 8]
mov dword [esp + 0xd4], edx
fld dword [esp + 0xc4]
fmul dword [ecx]
faddp st(1)
fld dword [esp + 0xc8]
fmul dword [ecx + 4]
faddp st(1)
fsub dword [esp + 0xd0]
fstp dword [esp + 0xe0]
mov eax, dword [esp + 0xe0]
mov dword [esp + 0xdc], eax
jmp 0x5007e1
fld dword [esp + 0xa4]
fmul dword [ecx + 8]
fld dword [esp + 0x9c]
fmul dword [ecx]
faddp st(1)
fld dword [esp + 0xa0]
fmul dword [ecx + 4]
faddp st(1)
fsub dword [esp + 0xa8]
fld dword [esp + 0xcc]
fmul dword [ecx + 8]
fld dword [esp + 0xc4]
fmul dword [ecx]
faddp st(1)
fld dword [esp + 0xc8]
fmul dword [ecx + 4]
faddp st(1)
fsub dword [esp + 0xd0]
fstp dword [esp + 0x14]
fcom dword [esp + 0xd4]
fnstsw ax
test ah, 0x41
je 0x50078e
fst dword [esp + 0xd4]
fld dword [esp + 0x14]
fcomp dword [esp + 0xdc]
fnstsw ax
test ah, 0x41
je 0x5007ab
mov edx, dword [esp + 0x14]
mov dword [esp + 0xdc], edx
fcom dword [esp + 0xd8]
fnstsw ax
test ah, 0x41
jne 0x5007c2
fstp dword [esp + 0xd8]
jmp 0x5007c4
fstp st(0)
fld dword [esp + 0x14]
fcomp dword [esp + 0xe0]
fnstsw ax
test ah, 0x41
jne 0x5007e1
mov eax, dword [esp + 0x14]
mov dword [esp + 0xe0], eax
movsx eax, word [esp + 0x5c]
lea edx, [eax + eax*2]
lea edx, [esp + edx*4 + 0x1f8]
mov esi, ecx
mov ebx, dword [esi]
mov dword [edx], ebx
mov ebx, dword [esi + 4]
mov esi, dword [esi + 8]
mov dword [edx + 4], ebx
mov dword [edx + 8], esi
mov edx, dword [esp + 0x48]
mov edx, dword [edx + ecx]
lea eax, [esp + eax*8 + 0x1b8]
mov dword [eax], edx
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + ecx]
mov dword [eax + 4], edx
mov al, byte [esp + 0x13]
test al, al
je 0x5008c8
fld dword [ecx]
fcomp dword [esp + 0xac]
fnstsw ax
test ah, 0x41
je 0x500841
mov eax, dword [ecx]
mov dword [esp + 0xac], eax
fld dword [ecx + 4]
fcomp dword [esp + 0xb4]
fnstsw ax
test ah, 0x41
je 0x50085c
mov edx, dword [ecx + 4]
mov dword [esp + 0xb4], edx
fld dword [ecx + 8]
fcomp dword [esp + 0xbc]
fnstsw ax
test ah, 0x41
je 0x500877
mov eax, dword [ecx + 8]
mov dword [esp + 0xbc], eax
fld dword [ecx]
fcomp dword [esp + 0xb0]
fnstsw ax
test ah, 0x41
jne 0x500890
mov edx, dword [ecx]
mov dword [esp + 0xb0], edx
fld dword [ecx + 4]
fcomp dword [esp + 0xb8]
fnstsw ax
test ah, 0x41
jne 0x5008ab
mov eax, dword [ecx + 4]
mov dword [esp + 0xb8], eax
fld dword [ecx + 8]
fcomp dword [esp + 0xc0]
fnstsw ax
test ah, 0x41
jne 0x500905
mov ecx, dword [ecx + 8]
mov dword [esp + 0xc0], ecx
jmp 0x500905
mov edx, dword [ecx]
mov eax, edx
mov dword [esp + 0xb0], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0xac], eax
mov eax, edx
mov dword [esp + 0xb8], edx
mov edx, ecx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xbc], edx
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x118]
mov edx, dword [esp + 0x84]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x50097b
lea ebx, [ebx]
cmp cx, dx
jge 0x50093c
movsx esi, cx
cmp dword [esp + esi*4 + 0x258], eax
jne 0x500934
or eax, 0xffffffff
inc ecx
cmp eax, 0xffffffff
jne 0x500920
jmp 0x50097b
cmp eax, 0xffffffff
je 0x50097b
mov esi, dword [esp + 0x11c]
lea ecx, [eax + eax*2]
lea ecx, [esi + ecx*4]
movzx esi, byte [ecx + 9]
cmp si, word [ebp + 8]
jne 0x50097b
mov cx, word [ecx + 0xa]
mov esi, dword [esp + 0xfc]
cmp cx, word [esi + 0xa]
jne 0x50097b
movsx ecx, dx
inc edx
mov dword [esp + ecx*4 + 0x258], eax
mov dword [esp + 0x84], edx
movzx eax, byte [esp + 0x1b]
mov ecx, dword [esp + 0xec]
mov ecx, dword [ecx + eax*4 + 8]
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0xc]
inc esi
cmp ecx, eax
mov dword [esp + 0x5c], esi
jne 0x50041c
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0x48]
test ecx, ecx
mov ebx, dword [esp + 0xe8]
mov dword [esp + 0x80], 0
jle 0x5013a8
xor esi, esi
jmp 0x5009d0
mov ecx, dword [esp + 0x88]
mov edx, dword [ecx + 0x4c]
shl esi, 7
mov eax, dword [esi + edx + 0xc]
add esi, edx
cmp eax, 0xffffffff
je 0x50137f
fld dword [0x672af8]
fld dword [esi + 0x14]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x500df8
fld dword [esp + 0xd4]
fdiv dword [esi + 0x14]
fcom dword [0x673050]
fnstsw ax
test ah, 5
jp 0x500a23
fstp st(0)
fld dword [0x673050]
jmp 0x500a38
fcom dword [0x672b20]
fnstsw ax
test ah, 0x41
jne 0x500a38
fstp st(0)
fld dword [0x672b20]
sub esp, 8
fstp qword [esp]
call fcn.006269e0
fstp dword [esp + 0x14]
add esp, 8
fld dword [esp + 0xc]
fistp dword [esp + 0xf8]
fld dword [esp + 0xdc]
fdiv dword [esi + 0x14]
mov dx, word [esp + 0xf8]
mov word [esp + 0x52], dx
fcom dword [0x673050]
fnstsw ax
test ah, 5
jp 0x500a83
fstp st(0)
fld dword [0x673050]
jmp 0x500a98
fcom dword [0x672b20]
fnstsw ax
test ah, 0x41
jne 0x500a98
fstp st(0)
fld dword [0x672b20]
sub esp, 8
fstp qword [esp]
call fcn.006269e0
fstp dword [esp + 0x14]
add esp, 8
fld dword [esp + 0xc]
fistp dword [esp + 0x104]
fld dword [esp + 0xd8]
fdiv dword [esi + 0x14]
mov edi, dword [esp + 0x104]
mov word [esp + 0x50], di
fcom dword [0x673050]
fnstsw ax
test ah, 5
jp 0x500ae2
fstp st(0)
fld dword [0x673050]
jmp 0x500af7
fcom dword [0x672b20]
fnstsw ax
test ah, 0x41
jne 0x500af7
fstp st(0)
fld dword [0x672b20]
sub esp, 8
fstp qword [esp]
call fcn.00624090
fstp dword [esp + 0x14]
add esp, 8
fld dword [esp + 0xc]
fistp dword [esp + 0x100]
fld dword [esp + 0xe0]
fdiv dword [esi + 0x14]
mov ax, word [esp + 0x100]
mov word [esp + 0x56], ax
fcom dword [0x673050]
fnstsw ax
test ah, 5
jp 0x500b42
fstp st(0)
fld dword [0x673050]
jmp 0x500b57
fcom dword [0x672b20]
fnstsw ax
test ah, 0x41
jne 0x500b57
fstp st(0)
fld dword [0x672b20]
sub esp, 8
fstp qword [esp]
call fcn.00624090
fstp dword [esp + 0x14]
add esp, 8
fld dword [esp + 0xc]
fistp dword [esp + 0x114]
mov eax, dword [esp + 0x114]
cmp di, ax
mov edi, dword [0x719bfc]
mov word [esp + 0x54], ax
jg 0x50137f
movsx edx, word [esp + 0x50]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x44], edx
sub eax, dword [esp + 0x50]
inc eax
movzx ecx, ax
mov dword [esp + 0x7c], ecx
jmp 0x500bb0
mov dx, word [esp + 0x56]
cmp word [esp + 0x52], dx
jg 0x501360
mov edx, dword [esp + 0x52]
fild dword [esp + 0x44]
mov ecx, dword [esp + 0x56]
movsx eax, word [esp + 0x52]
mov ebx, dword [esp + 0xf4]
fstp dword [esp + 0xec]
sub ecx, edx
inc ecx
movzx edx, cx
mov dword [esp + 0x48], eax
mov dword [esp + 0x98], edx
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x94]
mov eax, edi
imul eax, eax, 0x19660d
add eax, 0x3c6ef35f
mov dword [esp + 0x3c], ecx
mov dword [0x719bfc], eax
mov ecx, eax
imul eax, eax, 0x19660d
shr ecx, 0x10
mov dword [esp + 0xc], ecx
mov dword [esp + 0x40], edx
fild dword [esp + 0xc]
add eax, 0x3c6ef35f
mov edx, eax
shr edx, 0x10
fmul dword [0x672bbc]
mov dword [esp + 0xc], edx
mov edi, eax
fmul dword [0x672cdc]
mov dword [0x719bfc], edi
movsx eax, word [ebx + 0x65c2ec]
fsub dword [0x672da0]
movsx ecx, word [ebx + 0x65c2ee]
fild dword [esp + 0xc]
push 0
fmul dword [0x672bbc]
lea edx, [esp + 0x188]
push edx
fmul dword [0x672cdc]
fsub dword [0x672da0]
fild dword [esp + 0x50]
fadd st(2)
fmul dword [esi + 0x14]
fld dword [esp + 0xa4]
fmul st(1)
fadd dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [esp + 0xa8]
fmul st(1)
fadd dword [esp + 0x44]
fstp dword [esp + 0x44]
fld dword [esp + 0xac]
fmul st(1)
fadd dword [esp + 0x48]
fstp dword [esp + 0x48]
fstp st(0)
fld dword [esp + 0xf4]
fadd st(1)
fmul dword [esi + 0x14]
fstp st(2)
fstp st(0)
fld dword [esp + 0xcc]
fmul st(1)
fadd dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [esp + 0xd0]
fmul st(1)
fadd dword [esp + 0x44]
fstp dword [esp + 0x44]
fld dword [esp + 0xd4]
fmul st(1)
fadd dword [esp + 0x48]
fstp dword [esp + 0x48]
fstp st(0)
fld dword [esp + eax*4 + 0x40]
mov eax, dword [esp + 0x64]
fstp dword [esp + 0x18c]
push eax
fld dword [esp + ecx*4 + 0x44]
fstp dword [esp + 0x194]
lea ecx, [esp + 0x1c4]
call fcn.004caea0
add esp, 0xc
test al, al
je 0x501342
mov ebx, dword [0x696714]
fld dword [esp + 0x38]
mov ecx, ebx
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0xc]
fsub dword [ecx + 0x28]
mov dword [esp + 0x20], edx
mov edx, dword [ecx]
and edx, 0xffff
fstp dword [esp + 0x60]
mov dword [esp + 0x24], eax
fld dword [esp + 0x3c]
mov eax, dword [0x87b7b4]
fsub dword [ecx + 0x2c]
shl edx, 5
mov edx, dword [edx + eax + 0x14]
add edx, 0x194
fstp dword [esp + 0x64]
mov dword [esp + 0x4c], edx
fld dword [esp + 0x40]
fsub dword [ecx + 0x30]
fst dword [esp + 0x68]
fmul dword [esp + 0x68]
fld dword [esp + 0x64]
fmul dword [esp + 0x64]
faddp st(1)
fld dword [esp + 0x60]
fmul dword [esp + 0x60]
faddp st(1)
fsqrt
fst dword [esp + 0x14]
fabs
fcomp qword [0x672c10]
fnstsw ax
test ah, 5
jnp 0x500e23
fld dword [0x672afc]
fdiv dword [esp + 0x14]
fld dword [esp + 0x60]
fmul st(1)
fstp dword [esp + 0x60]
fld dword [esp + 0x64]
fmul st(1)
fstp dword [esp + 0x64]
fld dword [esp + 0x68]
fmul st(1)
fstp dword [esp + 0x68]
fstp st(0)
jmp 0x500e2b
mov ecx, dword [esp + 0xf0]
cmp ecx, dword [ebp + 0x10]
jne 0x50137f
xor eax, eax
mov word [esp + 0x54], ax
mov word [esp + 0x56], ax
mov word [esp + 0x50], ax
mov word [esp + 0x52], ax
jmp 0x500b8f
mov dword [esp + 0x14], 0
fld dword [edx + 0x1c]
fcomp dword [0x672af8]
fnstsw ax
test ah, 0x41
jne 0x500ed6
fld dword [esp + 0x14]
fdiv dword [edx + 0x1c]
fsubr dword [0x672afc]
fcom dword [0x672af8]
fnstsw ax
test ah, 5
jp 0x500e63
fstp st(0)
fld dword [0x672af8]
jmp 0x500e78
fcom dword [0x672afc]
fnstsw ax
test ah, 0x41
jne 0x500e78
fstp st(0)
fld dword [0x672afc]
fst dword [esp + 0x1c]
fld dword [0x672af8]
fld dword [edx + 0x20]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x500ea7
mov ecx, dword [esp + 0x4c]
fstp st(0)
fld dword [esp + 0x1c]
fld dword [ecx + 0x20]
call fcn.00628600
mov edx, dword [esp + 0x4c]
mov ecx, dword [ebp + 0xc]
fmul dword [edx + 0x18]
fld dword [esp + 0x60]
fmul st(1)
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x64]
fmul st(1)
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [esp + 0x68]
fmul st(1)
fadd dword [esp + 0x28]
fstp dword [esp + 0x28]
fstp st(0)
fld dword [edx + 4]
fcomp dword [0x672af8]
fnstsw ax
test ah, 0x41
jne 0x500f79
fld dword [esp + 0x14]
fdiv dword [edx + 4]
fsubr dword [0x672afc]
fcom dword [0x672af8]
fnstsw ax
test ah, 5
jp 0x500f0e
fstp st(0)
fld dword [0x672af8]
jmp 0x500f23
fcom dword [0x672afc]
fnstsw ax
test ah, 0x41
jne 0x500f23
fstp st(0)
fld dword [0x672afc]
fst dword [esp + 0x1c]
fld dword [0x672af8]
fld dword [edx + 8]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x500f52
mov edx, dword [esp + 0x4c]
fstp st(0)
fld dword [esp + 0x1c]
fld dword [edx + 8]
call fcn.00628600
mov edx, dword [esp + 0x4c]
mov ecx, dword [ebp + 0xc]
fmul dword [edx]
fld st(0)
fmul dword [ecx + 0x34]
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fld st(0)
fmul dword [ecx + 0x38]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fmul dword [ecx + 0x3c]
fadd dword [esp + 0x28]
fstp dword [esp + 0x28]
fld dword [esi + 0x1c]
fcomp dword [0x672af8]
fnstsw ax
test ah, 0x41
jne 0x500fe0
fld dword [esi + 0x1c]
imul edi, edi, 0x19660d
fld dword [esi + 0x18]
fxch st(1)
fsub st(1)
add edi, 0x3c6ef35f
mov eax, edi
shr eax, 0x10
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
mov dword [0x719bfc], edi
fmul dword [0x672bbc]
fmulp st(1)
fadd st(1)
fxch st(1)
fstp st(0)
fld dword [esp + 0x20]
fmul st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fmul st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fmul st(1)
fstp dword [esp + 0x28]
fstp st(0)
mov edx, dword [esp + 0x38]
imul edi, edi, 0x19660d
mov ecx, dword [esi + 0xc]
or eax, 0xffffffff
mov dword [esp + 0x124], eax
mov word [esp + 0x128], ax
mov word [esp + 0x12a], ax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x130], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x150], edx
mov dword [esp + 0x144], edx
mov edx, dword [ebx]
mov dword [esp + 0x120], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x14c], eax
mov dword [esp + 0x140], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x154], edx
add edi, 0x3c6ef35f
mov dword [esp + 0x138], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x158], eax
mov edx, edi
shr edx, 0x10
mov dword [esp + 0xc], edx
mov dword [esp + 0x148], ecx
fild dword [esp + 0xc]
mov dword [esp + 0x13c], ecx
mov ecx, dword [ebx + 8]
mov eax, edi
fmul dword [0x672bbc]
mov dword [0x719bfc], eax
imul eax, eax, 0x19660d
add eax, 0x3c6ef35f
fmul dword [0x672c58]
mov dword [esp + 0x15c], ecx
mov ecx, eax
fstp dword [esp + 0x160]
shr ecx, 0x10
fld dword [esi + 0x28]
mov dword [esp + 0xc], ecx
fld dword [esi + 0x24]
mov dword [0x719bfc], eax
imul eax, eax, 0x19660d
fxch st(1)
fsub st(1)
fild dword [esp + 0xc]
fmul dword [0x672bbc]
fmulp st(1)
add eax, 0x3c6ef35f
mov edx, eax
shr edx, 0x10
fadd st(1)
mov dword [esp + 0xc], edx
mov byte [esp + 0x12c], 0
mov byte [esp + 0x12d], 0
fstp dword [esp + 0x164]
mov byte [esp + 0x12e], 0
fstp st(0)
fld dword [esi + 0x38]
fld dword [esi + 0x34]
mov dword [0x719bfc], eax
fxch st(1)
fsub st(1)
fild dword [esp + 0xc]
fmul dword [0x672bbc]
fmulp st(1)
fadd st(1)
fstp dword [esp + 0x168]
fstp st(0)
imul eax, eax, 0x19660d
add eax, 0x3c6ef35f
mov edi, eax
shr eax, 0x10
mov dword [esp + 0xc], eax
push ecx
fild dword [esp + 0x10]
mov dword [0x719bfc], edi
mov edx, dword [esi + 0x10]
and edx, 3
fmul dword [0x672bbc]
lea eax, [esi + 0x58]
lea ecx, [esi + 0x48]
fstp dword [esp]
push edx
lea edx, [esp + 0x178]
push edx
call fcn.0043f6a0
imul edi, edi, 0x19660d
add edi, 0x3c6ef35f
mov eax, edi
shr eax, 0x10
mov dword [esp + 0x18], eax
mov dword [0x719bfc], edi
fild dword [esp + 0x18]
add esp, 0xc
fmul dword [0x672bbc]
fld dword [esi + 0x54]
fsub dword [esi + 0x44]
fmulp st(1)
fadd dword [esi + 0x44]
fcomp dword [0x672af8]
fnstsw ax
test ah, 5
jp 0x5011c9
mov dword [esp + 0x16c], 0
jmp 0x50124a
imul edi, edi, 0x19660d
add edi, 0x3c6ef35f
mov ecx, edi
shr ecx, 0x10
mov dword [esp + 0xc], ecx
mov dword [0x719bfc], edi
fild dword [esp + 0xc]
fmul dword [0x672bbc]
fld dword [esi + 0x54]
fsub dword [esi + 0x44]
fmulp st(1)
fadd dword [esi + 0x44]
fcomp dword [0x672afc]
fnstsw ax
test ah, 0x41
jne 0x501213
mov dword [esp + 0x16c], 0x3f800000
jmp 0x50124a
imul edi, edi, 0x19660d
add edi, 0x3c6ef35f
mov edx, edi
shr edx, 0x10
mov dword [esp + 0xc], edx
mov dword [0x719bfc], edi
fild dword [esp + 0xc]
fmul dword [0x672bbc]
fld dword [esi + 0x54]
fsub dword [esi + 0x44]
fmulp st(1)
fadd dword [esi + 0x44]
fstp dword [esp + 0x16c]
fld dword [esp + 0x144]
fmul dword [esp + 0x144]
fld dword [esp + 0x140]
fmul dword [esp + 0x140]
faddp st(1)
fld dword [esp + 0x13c]
fmul dword [esp + 0x13c]
faddp st(1)
fsqrt
fld st(0)
fabs
fcomp qword [0x672c10]
fnstsw ax
test ah, 5
jnp 0x5012d8
fld dword [0x672afc]
fdiv st(1)
fld dword [esp + 0x13c]
fmul st(1)
fstp dword [esp + 0x13c]
fld dword [esp + 0x140]
fmul st(1)
fstp dword [esp + 0x140]
fld dword [esp + 0x144]
fmul st(1)
fstp dword [esp + 0x144]
fstp st(0)
fld dword [0x672af8]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x501329
jmp 0x5012da
fstp st(0)
movsx ecx, word [0x6b7a20]
imul edi, edi, 0x19660d
add edi, 0x3c6ef35f
mov eax, edi
shr eax, 0x10
imul eax, ecx
shr eax, 0x10
movsx eax, ax
lea edx, [eax + eax*2]
mov eax, dword [0x6b7a1c]
lea eax, [eax + edx*4]
mov dword [0x719bfc], edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x13c], ecx
mov dword [esp + 0x140], edx
mov dword [esp + 0x144], eax
lea edi, [esp + 0x120]
call fcn.004558a0
mov edi, dword [0x719bfc]
mov ebx, dword [esp + 0xf4]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x98]
inc ecx
dec eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x98], eax
jne 0x500bf0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x7c]
inc ecx
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x7c], eax
jne 0x500bb0
mov ebx, dword [esp + 0xe8]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x88]
inc eax
movsx esi, ax
mov dword [esp + 0x80], eax
cmp esi, dword [ecx + 0x48]
jl 0x5009d0
mov edx, dword [esp + 0x84]
cmp word [esp + 0xe4], dx
jl 0x5002d0
mov edx, dword [esp + 0x88]
mov eax, dword [edx + 0x2c]
cmp eax, 0xffffffff
je 0x5014d3
mov cl, byte [esp + 0x13]
test cl, cl
je 0x5014d3
fld dword [esp + 0xb0]
mov ecx, dword [0x696718]
fadd dword [esp + 0xac]
mov edx, dword [ecx]
mov dword [esp + 0x198], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
fmul dword [0x672af4]
mov dword [esp + 0x19c], edx
mov edx, dword [0x696714]
fstp dword [esp + 0x18c]
mov dword [esp + 0x1a0], ecx
fld dword [esp + 0xb8]
mov ecx, dword [edx]
fadd dword [esp + 0xb4]
mov dword [esp + 0x1a4], ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
fmul dword [0x672af4]
push 0
mov dword [esp + 0x1ac], ecx
mov ecx, dword [ebp + 0xc]
fstp dword [esp + 0x194]
fld dword [esp + 0xc4]
push 0
fadd dword [esp + 0xc4]
mov dword [esp + 0x1b4], edx
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
push 0
push 0
mov dword [esp + 0x1c0], edx
fmul dword [0x672af4]
mov dword [esp + 0x1c4], ecx
push 0xffffffffffffffff
lea edx, [esp + 0x1cc]
fstp dword [esp + 0x1a8]
push edx
mov ecx, 0xb
lea esi, [esp + 0x1a4]
lea edi, [esp + 0x1dc]
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [esp + 0x1d8], 0x3f800000
mov word [esp + 0x1d4], 1
mov dword [esp + 0x1dc], 0x3f800000
call fcn.00549ea0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret