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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a6c44
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3dc
fld qword [0x5cb1d8]
fsqrt
mov eax, dword [ecx]
mov dword [esp + 0x3c], ecx
push ebx
push esi
mov edx, dword [eax + 0x20]
push edi
mov edi, 1
mov dword [esp + 0x18], 0
lea eax, [edx + 0x28]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], eax
movsx eax, word [eax]
dec eax
mov dword [esp + 0x20], eax
lea ecx, [eax + eax*2]
shl ecx, 2
mov dword [esp + 0x34], ecx
fld st(0)
fmul dword [0x5cb250]
fadd dword [0x5cb1d0]
fstp dword [esp + 0x2c]
fmul dword [0x5cb1d4]
fadd dword [0x5cb1d0]
fstp dword [esp + 0x4c]
jmp 0x4168b7
mov edx, dword [esp + 0x14]
test eax, eax
jl 0x416a84
mov edx, dword [edx + 0x2c]
mov ebx, dword [edx + ecx + 8]
cmp word [ebx + 0x2e], 0
je 0x416933
movsx esi, word [ebx + 0xc]
dec esi
test di, di
je 0x416933
test esi, esi
jl 0x416933
push esi
mov ecx, ebx
call fcn.004293f0
mov ecx, dword [ebp + 0x18]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.0043e010
fld dword [eax + 8]
cmp word [esp + 0x18], 0
jne 0x41690d
fstp dword [esp + 0x30]
mov dword [esp + 0x18], 1
jmp 0x41692d
fld dword [esp + 0x30]
fsub st(1)
fabs
fld dword [esp + 0x4c]
fcompp
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x41692b
mov edi, 1
jmp 0x41692d
xor edi, edi
dec esi
test di, di
jne 0x4168d7
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
dec eax
sub ecx, 0xc
test di, di
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], ecx
jne 0x4168b3
mov esi, dword [esp + 0x48]
mov edx, dword [esi]
add esi, 0x1c
mov ecx, esi
mov eax, dword [edx + 0x24]
add eax, 0x1c
push eax
call fcn.0041e610
mov ebx, dword [ebp + 0x18]
mov eax, dword [esp + 0x48]
test di, di
mov dword [eax + 0x18], 0xbf800000
je 0x417ad1
mov ecx, dword [esp + 0x1c]
cmp word [ecx], 0
jle 0x417ad1
lea edx, [esp + 0x94]
push esi
push edx
mov ecx, ebx
call fcn.0043e010
mov ecx, dword [eax]
mov dword [esp + 0x10], 1
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + 4]
mov dword [esp + 0xbc], edx
mov edx, dword [ecx + 0x2c]
mov eax, dword [eax + 8]
mov dword [esp + 0xc0], eax
mov eax, dword [edx + 8]
mov eax, dword [eax + 0x24]
fld dword [eax + 0x3c]
fld dword [eax + 0x38]
fmul st(1)
fst dword [esp + 0xa4]
fxch st(1)
fstp st(0)
fcomp qword [0x5cb1a8]
fnstsw ax
test ah, 0x41
je 0x4169f6
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
add eax, 0x30
mov dword [esp + 0x24], eax
movsx esi, word [eax]
inc esi
mov dword [esp + 0x4c], esi
lea edi, [esi + esi*4]
shl edi, 2
push edi
call fcn.00586401
mov ebx, eax
lea eax, [esi - 2]
add esp, 4
mov dword [esp + 0x44], ebx
test eax, eax
jl 0x416c88
lea ecx, [eax + eax*2]
shl ecx, 2
mov dword [esp + 0x18], ecx
lea ecx, [eax + eax*4]
inc eax
lea ebx, [ebx + ecx*4]
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push 0xc
mov eax, dword [edx + 0x34]
mov eax, dword [ecx + eax + 8]
mov dword [ebx], eax
call fcn.00586401
mov esi, eax
add esp, 4
mov dword [esp + 0x64], esi
test esi, esi
mov dword [esp + 0x3f0], 0
je 0x416c21
mov ecx, esi
call fcn.004259a0
mov dword [esi], 0x5cb148
jmp 0x416c23
test di, di
je 0x416950
cmp word [esp + 0x18], 0
je 0x416950
mov ecx, dword [esp + 0x48]
mov ebx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov ecx, ebx
mov eax, dword [edx + 0x24]
add eax, 0x1c
push eax
lea eax, [esp + 0x98]
push eax
call fcn.0043e010
mov ecx, dword [eax]
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x5c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x60], eax
fld dword [esp + 0x60]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 1
je 0x416ae9
fld dword [esp + 0x60]
fsubr dword [esp + 0x30]
fstp dword [esp + 0x34]
jmp 0x416af1
mov dword [esp + 0x34], 0
fld dword [ebp + 0x14]
fchs
fld qword [0x5cb248]
fptan
fstp st(0)
fxch st(1)
fxch st(1)
fdivr dword [esp + 0x34]
fsubp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x60]
fstp qword [esp + 0x4c]
fld dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
fstp qword [esp + 0x34]
fld dword [esp + 0x18]
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x38]
push edx
sub esp, 8
fstp qword [esp]
push eax
push ecx
lea ecx, [esp + 0xac]
call fcn.0041e260
mov edx, dword [eax]
mov dword [esp + 0xb8], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0xbc], ecx
lea ecx, [esp + 0xb8]
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc0], edx
lea edx, [esp + 0x94]
push ecx
push edx
mov ecx, ebx
lea esi, [eax + 0x1c]
call fcn.0043dfb0
push eax
mov ecx, esi
call fcn.0041e610
mov ecx, esi
call fcn.0041e330
lea eax, [esp + 0x94]
push esi
push eax
mov ecx, ebx
call fcn.0043e010
fld dword [eax + 4]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x41696a
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
fld dword [esp + 0x18]
fsub dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x38]
push edx
sub esp, 8
fstp qword [esp]
push eax
push ecx
lea ecx, [esp + 0xac]
call fcn.0041e260
mov edx, dword [eax]
mov dword [esp + 0x74], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x94]
mov edx, dword [eax + 8]
lea eax, [esp + 0x74]
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x84], edx
call fcn.0043dfb0
push eax
mov ecx, esi
call fcn.0041e610
mov ecx, esi
call fcn.0041e330
jmp 0x41696a
xor esi, esi
mov dword [ebx + 4], esi
mov edx, dword [ebx]
mov dword [esp + 0x3f0], 0xffffffff
mov ax, word [edx + 0x1c]
cmp ax, 4
je 0x416c47
cmp ax, 8
je 0x416c47
xor eax, eax
jmp 0x416c4c
mov eax, 1
mov word [ebx + 8], ax
lea eax, [ebx + 0x10]
mov ecx, 4
mov word [eax], 1
sub eax, 2
dec ecx
jne 0x416c58
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
sub edx, 0xc
sub ebx, 0x14
dec eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x34], eax
jne 0x416a3e
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x4c]
push 0xc
mov dword [edi + ebx - 0x14], 0
call fcn.00586401
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
mov dword [esp + 0x3f0], 1
je 0x416cc0
mov ecx, eax
call fcn.004259a0
mov eax, dword [esp + 0x34]
mov dword [eax], 0x5cb148
jmp 0x416cc2
xor eax, eax
mov dword [edi + ebx - 0x10], eax
mov word [edi + ebx - 0xc], 0
mov dword [esp + 0x3f0], 0xffffffff
lea edi, [edi + ebx - 4]
mov eax, 4
mov word [edi], 0
sub edi, 2
dec eax
jne 0x416ce1
mov eax, dword [esp + 0x1c]
movsx eax, word [eax]
dec eax
cmp word [esp + 0x10], 0
mov dword [esp + 0x20], eax
je 0x416d5a
lea ecx, [eax + eax*2]
shl ecx, 2
mov dword [esp + 0x18], ecx
test eax, eax
jl 0x416d5a
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x2c]
mov edi, dword [ecx + eax + 8]
mov eax, dword [edi + 0x28]
test eax, eax
je 0x416d2e
mov ecx, dword [esp + 0x24]
push eax
call fcn.004261a0
test eax, eax
jge 0x416d31
lea eax, [esi - 1]
lea ecx, [eax + eax*4]
push edi
mov ecx, dword [ebx + ecx*4 + 4]
call fcn.00425af0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
dec ecx
sub eax, 0xc
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
mov ecx, eax
mov eax, dword [esp + 0x20]
jmp 0x416d0a
dec esi
cmp word [esp + 0x10], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
je 0x4171f0
mov eax, esi
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x44]
lea ecx, [eax + edx*4 + 8]
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x4171f0
mov esi, dword [esp + 0x14]
cmp word [esi], 0
mov edi, dword [esi - 8]
je 0x416dd4
test edi, edi
je 0x416dd4
cmp word [edi + 0x1d8], 0
jne 0x416dd4
cmp word [edi + 0x1a], 0
je 0x416db8
cmp word [edi + 0x1ea], 0
jne 0x416dd4
mov ecx, dword [esi - 4]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, edi
mov ebx, eax
call fcn.00410f30
cmp eax, ebx
jne 0x416dd4
mov eax, 1
jmp 0x416dd6
xor eax, eax
mov word [esi], ax
mov ecx, dword [esi - 4]
mov eax, dword [ecx]
call dword [eax + 4]
dec eax
cmp word [esp + 0x10], 0
mov dword [esp + 0x28], eax
je 0x41700f
mov ecx, dword [esp + 0x14]
cmp word [ecx], 0
je 0x41700f
mov eax, dword [esp + 0x28]
test eax, eax
jl 0x41700f
mov edx, ecx
mov dword [esp + 0x10], 1
mov eax, dword [edx - 4]
mov edx, dword [esp + 0x28]
mov ecx, dword [eax + 8]
mov esi, dword [ecx + edx*4]
mov eax, dword [esi + 0x24]
fld dword [eax + 0x3c]
fld dword [eax + 0x38]
fmul st(1)
fxch st(1)
fstp st(0)
fld dword [esp + 0xa4]
fsub st(1)
fabs
fcomp qword [0x5cb240]
fnstsw ax
test ah, 1
fstp st(0)
jne 0x416e54
mov dword [esp + 0x10], 0
push 0
mov ecx, esi
call fcn.004293f0
fld qword [eax + 0x10]
fld qword [edi + 0x120]
fsub st(1)
fabs
fcomp qword [0x5cb238]
fnstsw ax
test ah, 1
fstp st(0)
je 0x416f56
push 0
mov ecx, esi
call fcn.004293f0
fld qword [eax + 0x18]
fld qword [edi + 0x128]
fsub st(1)
fabs
fcomp qword [0x5cb238]
fnstsw ax
test ah, 1
fstp st(0)
je 0x416f56
push 0
mov ecx, esi
call fcn.004293f0
fld qword [eax + 0x20]
fld qword [edi + 0x130]
fsub st(1)
fabs
fcomp qword [0x5cb238]
fnstsw ax
test ah, 1
fstp st(0)
je 0x416f56
push 0
mov ecx, esi
call fcn.004293f0
fld qword [eax + 0x28]
fld qword [edi + 0x138]
fsub st(1)
fabs
fcomp qword [0x5cb238]
fnstsw ax
test ah, 1
fstp st(0)
je 0x416f56
mov eax, dword [edi + 0x30]
mov ecx, dword [esi + 0x24]
cmp eax, ecx
jne 0x416f56
push 0
mov ecx, esi
call fcn.004293f0
movsx eax, word [eax + 0xc8]
movsx ecx, word [edi + 0x1d8]
cmp ecx, eax
jne 0x416f56
mov dx, word [edi + 0x1ea]
cmp dx, word [esi + 2]
jne 0x416f56
mov ax, word [edi + 0x1f4]
cmp ax, word [esi + 0x2c]
jne 0x416f56
mov ecx, dword [esp + 0x24]
push edi
call fcn.00427350
mov ecx, dword [esp + 0x1c]
push esi
mov bx, ax
call fcn.00427350
cmp bx, ax
jne 0x416f56
mov ebx, 1
jmp 0x416f58
xor ebx, ebx
mov cx, word [edi + 0x1ea]
cmp cx, 1
je 0x416f6b
cmp cx, 3
jne 0x416f89
test bx, bx
je 0x416f87
fld dword [esi + 4]
fcomp dword [edi + 0x1ec]
fnstsw ax
test ah, 0x40
je 0x416f87
mov ebx, 1
jmp 0x416f89
xor ebx, ebx
cmp cx, 2
je 0x416f95
cmp cx, 3
jne 0x416fb3
test bx, bx
je 0x416fb1
fld dword [esi + 8]
fcomp dword [edi + 0x1f0]
fnstsw ax
test ah, 0x40
je 0x416fb1
mov ebx, 1
jmp 0x416fb3
xor ebx, ebx
mov ecx, dword [esp + 0x24]
push edi
call fcn.00427350
test ax, ax
je 0x416fec
test bx, bx
je 0x416ff1
mov ecx, dword [esp + 0x24]
push edi
call fcn.004261e0
fstp dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
push esi
call fcn.004261e0
fcomp dword [esp + 0x4c]
fnstsw ax
test ah, 0x40
jne 0x416ffa
jmp 0x416ff1
test bx, bx
jne 0x416ffa
mov ecx, dword [esp + 0x14]
mov word [ecx], 0
mov ecx, dword [esp + 0x28]
dec ecx
cmp word [esp + 0x10], 0
mov dword [esp + 0x28], ecx
jne 0x416df2
test edi, edi
je 0x41703e
cmp word [edi + 0x1a], 0
je 0x41703e
cmp word [esp + 0x10], 0
mov ebx, dword [esp + 0x14]
je 0x4171cc
cmp word [ebx], 0
je 0x4171cc
mov dword [esp + 0x10], 1
jmp 0x41704e
cmp word [esp + 0x10], 0
mov ebx, dword [esp + 0x14]
je 0x4171d4
cmp word [ebx], 0
je 0x4171d4
push 0
push 0
push 0x3ff00000
push 0
push 0
push 0
lea ecx, [esp + 0xac]
call fcn.0041e260
mov ecx, dword [ebp + 0x18]
lea edx, [esp + 0x10c]
push eax
push edx
call fcn.0043e070
mov ecx, dword [eax]
push 0
mov dword [esp + 0x88], ecx
push 0
mov edx, dword [eax + 4]
push 0
mov dword [esp + 0x94], edx
push 0
mov eax, dword [eax + 8]
push 0x3ff00000
push 0
lea ecx, [esp + 0x10c]
mov dword [esp + 0xa4], eax
call fcn.0041e260
lea ecx, [esp + 0xd8]
push eax
push ecx
lea ecx, [edi + 0x38]
call fcn.0043e070
mov edx, dword [eax]
sub esp, 8
mov dword [esp + 0x7c], edx
sub esp, 8
mov ecx, dword [eax + 4]
sub esp, 8
mov dword [esp + 0x90], ecx
lea ecx, [esp + 0xfc]
mov edx, dword [eax + 8]
mov dword [esp + 0x94], edx
fld dword [esp + 0x94]
fstp qword [esp + 0x10]
fld dword [esp + 0x90]
fstp qword [esp + 8]
fld dword [esp + 0x8c]
fchs
fstp qword [esp]
call fcn.0041e260
mov ecx, dword [eax]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x74]
mov edx, dword [eax + 4]
push ecx
mov dword [esp + 0x3c], edx
lea ecx, [esp + 0x88]
mov eax, dword [eax + 8]
mov dword [esp + 0x40], eax
call fcn.0041e6f0
fabs
fsubr qword [0x5cb1a0]
fcomp qword [0x5cb198]
fnstsw ax
test ah, 1
je 0x41715f
mov esi, 1
jmp 0x417161
xor esi, esi
lea edx, [esp + 0x34]
lea ecx, [esp + 0x84]
push edx
call fcn.0041e6f0
fabs
fsubr qword [0x5cb1a0]
fcomp qword [0x5cb198]
fnstsw ax
test ah, 1
je 0x41718e
mov eax, 1
jmp 0x417190
xor eax, eax
mov word [ebx + 2], si
mov word [ebx + 4], ax
mov word [ebx + 6], ax
mov word [ebx + 8], si
cmp word [edi + 0x1a], 0
je 0x4171d4
cmp word [esp + 0x10], 0
je 0x4171cc
test si, si
je 0x4171cc
test ax, ax
jne 0x4171c2
cmp word [edi + 0x1ea], ax
jne 0x4171cc
mov dword [esp + 0x10], 1
jmp 0x4171d4
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x20]
sub ebx, 0x14
dec edx
cmp word [esp + 0x10], 0
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ebx
jne 0x416d80
mov ecx, dword [esp + 0x48]
call fcn.004234b0
cmp word [esp + 0x10], 0
fstp dword [esp + 0x4c]
je 0x417a7d
fld dword [esp + 0x4c]
fcomp qword [0x5cb1a8]
fnstsw ax
test ah, 0x41
jne 0x417a7d
cmp word [ebp + 8], 0
je 0x41727f
push 0x3840
call fcn.00586401
mov ebx, eax
add esp, 4
mov dword [esp + 0x64], ebx
test ebx, ebx
mov dword [esp + 0x3f0], 2
je 0x41726c
mov esi, ebx
mov edi, 0x4b0
mov ecx, esi
call fcn.00479c40
add esi, 0xc
dec edi
jne 0x41724e
mov dword [esp + 0x3f0], 0xffffffff
mov dword [esp + 0x14], ebx
jmp 0x4172b8
xor ebx, ebx
mov dword [esp + 0x3f0], 0xffffffff
mov dword [esp + 0x14], ebx
jmp 0x4172b8
push 0xc
call fcn.00586401
mov esi, eax
add esp, 4
mov dword [esp + 0x64], esi
test esi, esi
mov dword [esp + 0x3f0], 3
je 0x4172a7
mov ecx, esi
call fcn.00479c40
jmp 0x4172a9
xor esi, esi
mov dword [esp + 0x3f0], 0xffffffff
mov dword [esp + 0x14], esi
fld qword [0x5cb230]
fsin
sub esp, 8
lea ecx, [esp + 0xec]
sub esp, 8
fchs
fstp qword [esp + 8]
fld qword [0x5cb230]
fcos
fstp qword [esp]
push 0
push 0
call fcn.0041e260
mov ecx, dword [ebp + 0x18]
push eax
lea eax, [esp + 0xdc]
push eax
call fcn.0043e070
mov ecx, dword [eax]
mov dword [esp + 0xcc], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + 4]
push ecx
mov dword [esp + 0xd4], edx
lea ecx, [esp + 0xc8]
mov eax, dword [eax + 8]
mov dword [esp + 0xd8], eax
call fcn.004272f0
lea ecx, [esp + 0x58]
mov dword [esp + 0x3f0], 4
call fcn.004259a0
mov dword [esp + 0x58], 0x5cb148
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x3f0], 5
test ebx, ebx
jl 0x417549
mov eax, dword [esp + 0x44]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov dword [esp + 0x28], eax
cmp word [eax + 8], 0
je 0x417539
mov ecx, dword [eax]
cmp word [ecx + 0x1a], 0
je 0x417539
push ecx
lea ecx, [esp + 0x11c]
call fcn.004102c0
lea ecx, [esp + 0x118]
mov byte [esp + 0x3f0], 6
call fcn.00410f50
fst dword [esp + 0x1c]
fcomp qword [0x5cb1a8]
fnstsw ax
test ah, 0x41
jne 0x417521
fld dword [esp + 0x30]
fmul dword [0x5cb228]
fdiv dword [esp + 0x1c]
call fcn.0056b454
cmp eax, 4
mov dword [esp + 0x34], eax
jge 0x4173d6
mov dword [esp + 0x34], 4
fld dword [0x5cb224]
fdiv dword [esp + 0x1c]
fiadd dword [esp + 0x34]
call fcn.0056b454
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x128]
mov esi, eax
call fcn.00410f30
mov dword [esp + 0x3c], eax
sub esp, 8
fild dword [esp + 0x44]
lea ecx, [esp + 0xfc]
fmul dword [esp + 0x34]
fstp qword [esp]
call fcn.0041e260
lea ecx, [esp + 0xd8]
push eax
push ecx
lea ecx, [esp + 0x158]
call fcn.0043dfb0
mov edx, dword [eax]
mov dword [esp + 0xac], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0xb0], ecx
lea ecx, [esp + 0x118]
mov edx, dword [eax + 8]
mov dword [esp + 0xb4], edx
call fcn.00410f30
sub esi, eax
test esi, esi
mov dword [esp + 0x2c], esi
jle 0x417521
mov ecx, 0x36
lea esi, [esp + 0x150]
lea edi, [esp + 0x310]
lea eax, [esp + 0xac]
rep movsd dword es:[edi], dword [esi]
push 1
push eax
lea ecx, [esp + 0x318]
call fcn.0043dac0
lea ecx, [esp + 0x310]
push ecx
lea ecx, [esp + 0x11c]
call fcn.00410f70
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x120]
call fcn.00411050
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x11c]
call fcn.004108b0
lea ecx, [esp + 0x58]
call fcn.00425d10
mov esi, eax
dec esi
js 0x417521
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x24]
push ebx
mov edi, dword [edx + esi*4]
call fcn.00426200
mov ecx, dword [esp + 0x24]
push eax
push ebx
call fcn.004261d0
push ecx
lea ecx, [esp + 0xcc]
fstp dword [esp]
push edi
call fcn.004260a0
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x28]
mov eax, dword [eax + esi*4]
mov ecx, dword [ecx + 4]
push eax
call fcn.00425af0
dec esi
jns 0x4174dd
lea ecx, [esp + 0x118]
mov byte [esp + 0x3f0], 5
call fcn.00408310
mov eax, dword [esp + 0x28]
dec ebx
sub eax, 0x14
test ebx, ebx
mov dword [esp + 0x28], eax
jge 0x417364
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], 0
mov dword [esp + 0xa8], eax
lea ecx, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x44]
shl ecx, 1
mov dword [esp + 0x28], ecx
lea ecx, [eax + edx*4 + 4]
mov dword [esp + 0x24], ecx
mov ebx, ecx
mov eax, dword [esp + 0xa8]
test eax, eax
jl 0x4179bf
mov ecx, dword [ebx]
mov edx, dword [ecx]
call dword [edx + 4]
test eax, eax
jle 0x417990
mov edi, 3
lea ecx, [esp + 0x68]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], 0
call fcn.004259a0
mov dword [esp + 0x68], 0x5cb148
mov ecx, dword [ebx]
mov byte [esp + 0x3f0], 7
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, eax
dec esi
js 0x4175eb
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
mov eax, dword [edx + esi*4]
movsx ecx, word [eax + 0xc]
cmp edi, ecx
jge 0x4175e8
push eax
lea ecx, [esp + 0x6c]
call fcn.00425af0
dec esi
jns 0x4175ce
cmp word [esp + 0x10], 0
je 0x41793b
cmp word [esp + 0x2c], 0
jne 0x41793b
lea ecx, [esp + 0x68]
call fcn.00425d10
test eax, eax
jle 0x41793b
mov edx, dword [esp + 0x70]
push edi
mov dword [esp + 0xa4], 0
mov ecx, dword [edx]
call fcn.004293f0
mov ebx, dword [ebp + 0x18]
push eax
lea eax, [esp + 0xe8]
mov ecx, ebx
push eax
call fcn.0043e010
mov ecx, dword [eax]
mov dword [esp + 0xac], ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [eax + 4]
cmp word [ecx + 4], 0
mov dword [esp + 0xb0], edx
mov eax, dword [eax + 8]
mov dword [esp + 0xb4], eax
je 0x417720
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
lea eax, [edi + edx]
cmp word [ecx + eax*2 + 0xa], 0
je 0x417720
lea ecx, [esp + 0x68]
call fcn.00425d10
mov esi, eax
dec esi
test esi, esi
jle 0x417720
mov edx, dword [esp + 0x70]
push edi
mov ecx, dword [edx + esi*4]
call fcn.004293f0
push eax
lea eax, [esp + 0xdc]
push eax
mov ecx, ebx
call fcn.0043e010
mov ecx, dword [eax]
mov dword [esp + 0x94], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x98], edx
fld dword [esp + 0x98]
fld dword [esp + 0xb0]
mov eax, dword [eax + 8]
fcompp
mov dword [esp + 0x9c], eax
fnstsw ax
test ah, 0x41
jne 0x417717
mov ecx, dword [esp + 0x70]
push edi
mov dword [esp + 0xa4], esi
mov ecx, dword [ecx + esi*4]
call fcn.004293f0
lea edx, [esp + 0x100]
push eax
push edx
mov ecx, ebx
call fcn.0043e010
push eax
lea ecx, [esp + 0xb0]
call fcn.0041e610
dec esi
test esi, esi
jg 0x417695
fld dword [0x5cb15c]
fdiv dword [esp + 0xa4]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0xa0]
mov esi, dword [eax + ecx*4]
lea ecx, [esp + 0xc4]
push esi
fmul dword [0x5cb220]
fstp dword [esp + 0x24]
call fcn.00427350
test ax, ax
je 0x41776c
push esi
lea ecx, [esp + 0xc8]
call fcn.004261e0
fmul dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0xb4]
fsub dword [esp + 0xc0]
fld dword [esp + 0xb0]
fsub dword [esp + 0xbc]
mov dword [esp + 0x30], 0
fpatan
fmul qword [0x5cb218]
fcom qword [0x5cb210]
fnstsw ax
test ah, 0x41
jne 0x4178c2
fcomp qword [0x5cb208]
fnstsw ax
test ah, 1
je 0x4178c4
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xf0]
push edx
mov edx, dword [ebp + 0x1c]
push 0
lea ecx, [esp + 0x6c]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [esp + 0x5c]
push eax
push ecx
lea eax, [edx + 0x1c]
mov ecx, esi
push eax
push edi
call fcn.00429430
xor esi, esi
mov dword [esp + 0x10], eax
test ax, ax
je 0x4178c4
mov ebx, dword [esp + 0x14]
cmp esi, dword [esp + 0x64]
jge 0x4178c4
mov ecx, ebx
call fcn.0041e2e0
fst qword [esp + 0x84]
fcomp qword [0x5cb1a8]
fnstsw ax
test ah, 0x40
jne 0x4178a6
lea eax, [esp + 0xcc]
mov ecx, ebx
push eax
call fcn.0041e6f0
fst qword [esp + 0x74]
fdiv qword [esp + 0x84]
sub esp, 8
fchs
fstp qword [esp]
call fcn.004204f0
fmul qword [0x5cb218]
add esp, 8
fst qword [esp + 0x84]
fcomp qword [0x5cb200]
fnstsw ax
test ah, 1
jne 0x4178b8
fld qword [esp + 0x84]
fcomp qword [0x5cb1f8]
mov dword [esp + 0x10], 1
fnstsw ax
test ah, 0x41
je 0x4178a6
fld dword [esp + 0x20]
fmul qword [esp + 0x74]
fld qword [esp + 0x84]
fmul qword [esp + 0x84]
fdivp st(1)
fsubr dword [esp + 0x30]
fstp dword [esp + 0x30]
inc esi
add ebx, 0xc
cmp word [esp + 0x10], 0
jne 0x4177fd
jmp 0x4178c4
mov dword [esp + 0x10], 0
jmp 0x4178a6
fstp st(0)
mov ecx, dword [esp + 0x24]
cmp word [ecx + 4], 0
je 0x417912
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
lea eax, [edi + edx]
cmp word [ecx + eax*2 + 0xa], 0
je 0x417912
fld dword [esp + 0x1c]
fcomp dword [0x5c9afc]
fnstsw ax
test ah, 0x41
jne 0x417912
fld dword [esp + 0x30]
fdiv dword [esp + 0x1c]
fcomp dword [0x5cb1f0]
fnstsw ax
test ah, 1
je 0x417912
mov dword [esp + 0x2c], 1
jmp 0x41791e
fld dword [esp + 0x30]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
mov edx, dword [esp + 0xa0]
lea ecx, [esp + 0x68]
push edx
call fcn.00425c30
cmp word [esp + 0x10], 0
jne 0x4175f7
lea ecx, [esp + 0x68]
call fcn.00425d10
test eax, eax
jle 0x417960
push 0
lea ecx, [esp + 0x6c]
call fcn.00425c30
lea ecx, [esp + 0x68]
call fcn.00425d10
test eax, eax
jg 0x417948
fld dword [esp + 0x1c]
fadd dword [esp + 0x34]
lea ecx, [esp + 0x68]
mov byte [esp + 0x3f0], 5
mov dword [esp + 0x68], 0x5cb148
fstp dword [esp + 0x34]
call fcn.00425a10
mov ebx, dword [esp + 0x24]
dec edi
jns 0x417599
mov esi, dword [esp + 0xa8]
mov ecx, dword [esp + 0x28]
dec esi
sub ebx, 0x14
sub ecx, 0xa
cmp word [esp + 0x10], 0
mov dword [esp + 0xa8], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
jne 0x417576
jmp 0x417a07
cmp word [esp + 0x10], 0
je 0x417a07
mov esi, dword [esp + 0x48]
mov eax, dword [esi]
fld dword [eax + 0x30]
fmul dword [esp + 0xa4]
fmul dword [ebp + 0x10]
fst dword [esp + 0x2c]
fld qword [0x5cb1e8]
call fcn.0056c130
fmul dword [esp + 0x34]
fmul qword [0x5cb1e0]
fld dword [esp + 0x4c]
fld qword [0x5cb1e8]
call fcn.0056c130
fdivp st(1)
fstp dword [esi + 0x18]
lea ecx, [esp + 0x58]
call fcn.00425d10
mov edi, eax
dec edi
js 0x417a38
push edi
lea ecx, [esp + 0x5c]
call fcn.00425c30
mov esi, eax
test esi, esi
je 0x417a35
mov ecx, esi
call fcn.00428380
push esi
call fcn.0058642a
add esp, 4
dec edi
jns 0x417a15
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0058642a
add esp, 4
lea ecx, [esp + 0x58]
mov byte [esp + 0x3f0], 4
mov dword [esp + 0x58], 0x5cb148
call fcn.00425a10
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x3f0], 0xffffffff
test eax, eax
je 0x417a7d
push eax
call fcn.0058642a
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x417ac4
mov ecx, dword [esp + 0x44]
lea edx, [eax + eax*4]
lea edi, [eax + 1]
lea esi, [ecx + edx*4 + 4]
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
test eax, eax
jle 0x417ab2
mov ecx, dword [esi]
push 0
call fcn.00425c30
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jg 0x417a9e
mov ecx, dword [esi]
test ecx, ecx
je 0x417abe
mov edx, dword [ecx]
push 1
call dword [edx]
sub esi, 0x14
dec edi
jne 0x417a93
mov eax, dword [esp + 0x44]
push eax
call fcn.0058642a
add esp, 4
mov ecx, dword [esp + 0x3e8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18