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

Disassembly:
sub esp, 0x54
fld dword [0x680ff0]
fmul dword [0x68101c]
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
xor edx, edx
fst dword [esp + 0x18]
fld dword [0x680ff0]
fmul dword [0x681018]
mov ecx, dword [esi + 0x10]
push edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], ebx
fst dword [esp + 0x38]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [ecx]
fstp dword [esp + 0x20]
mov ebp, dword [eax + 0xc]
mov dword [esp + 0x34], eax
fstp dword [esp + 0x24]
cmp ebp, 4
setne dl
dec edx
and edx, eax
mov ebp, edx
je 0x4ad69d
mov ecx, ebp
call fcn.004f2a30
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x38], ebx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x38]
cmp eax, ebx
mov dword [esp + 0x18], ecx
jle 0x4ad968
cmp eax, 1
jne 0x4ad6c0
mov edi, dword [esi + 0x3c]
jmp 0x4ad6c6
mov edx, dword [esi + 0x3c]
mov edi, dword [edx + ebx*4]
cmp edi, 0xffffffff
jne 0x4ad6e5
mov eax, dword [esi + 0x40]
fld dword [eax + ebx*4 - 4]
fmul dword [esp + 0x18]
fmul dword [0x66ecc4]
fsubr dword [esp + 0x14]
jmp 0x4ad954
test ebx, ebx
je 0x4ad6f4
mov ecx, dword [esi + 0x40]
fld dword [esp + 0x14]
fstp dword [ecx + ebx*4 - 4]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x3c]
push eax
push edi
mov edx, dword [ecx]
call dword [edx + 0x24]
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4ad800
fild dword [esp + 0x40]
fld dword [esp + 0x24]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4ad724
fst dword [esp + 0x24]
fld dword [esp + 0x28]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4ad737
fstp dword [esp + 0x28]
jmp 0x4ad739
fstp st(0)
fild dword [esp + 0x48]
fld dword [esp + 0x24]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4ad74e
fst dword [esp + 0x24]
fld dword [esp + 0x28]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4ad761
fstp dword [esp + 0x28]
jmp 0x4ad763
fstp st(0)
fild dword [esp + 0x3c]
fmul dword [esp + 0x18]
fmul dword [0x66ecc4]
fadd dword [esp + 0x14]
fild dword [esp + 0x44]
fmul dword [esp + 0x18]
fmul dword [0x66ecc4]
fadd dword [esp + 0x14]
fstp dword [esp + 0x2c]
fld dword [esp + 0x1c]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4ad79c
fst dword [esp + 0x1c]
fld dword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4ad7af
fstp dword [esp + 0x20]
jmp 0x4ad7b1
fstp st(0)
fld dword [esp + 0x1c]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x4ad7c8
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], ecx
fld dword [esp + 0x20]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 1
je 0x4ad7df
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x34]
push edi
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fmul dword [esp + 0x18]
fmul dword [0x66ecc4]
jmp 0x4ad93f
push edi
mov ecx, ebp
call fcn.004f2a10
lea ecx, [esp + 0x12]
lea edx, [esp + 0x10]
mov ebx, eax
push ecx
push edx
push ebx
mov ecx, ebp
call fcn.004f29f0
movsx eax, word [esp + 0x10]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
sub edx, eax
sub ecx, eax
movsx eax, word [esp + 0x12]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x40]
fild dword [esp + 0x3c]
fld dword [esp + 0x1c]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x48]
fcomp st(1)
sub edx, eax
sub ecx, eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], ecx
fnstsw ax
test ah, 0x41
jne 0x4ad863
fst dword [esp + 0x1c]
fld dword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4ad876
fstp dword [esp + 0x20]
jmp 0x4ad878
fstp st(0)
fild dword [esp + 0x44]
fld dword [esp + 0x1c]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4ad88d
fst dword [esp + 0x1c]
fld dword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4ad8a0
fstp dword [esp + 0x20]
jmp 0x4ad8a2
fstp st(0)
fild dword [esp + 0x40]
fmul dword [esp + 0x18]
fmul dword [0x66ecc4]
fadd dword [esp + 0x14]
fild dword [esp + 0x48]
fmul dword [esp + 0x18]
fmul dword [0x66ecc4]
fadd dword [esp + 0x14]
fstp dword [esp + 0x2c]
fld dword [esp + 0x24]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4ad8db
fst dword [esp + 0x24]
fld dword [esp + 0x28]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4ad8ee
fstp dword [esp + 0x28]
jmp 0x4ad8f0
fstp st(0)
fld dword [esp + 0x24]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x4ad907
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
fld dword [esp + 0x28]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 1
je 0x4ad91e
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], ecx
push ebx
mov ecx, ebp
call fcn.004f29e0
movsx edx, ax
mov dword [esp + 0x2c], edx
mov ebx, dword [esp + 0x38]
fild dword [esp + 0x2c]
fmul dword [esp + 0x18]
fmul dword [0x66ecc4]
fadd dword [esp + 0x14]
cmp edi, 0x20
jne 0x4ad94e
mov eax, dword [esi + 0x10]
fadd dword [eax + 0xc]
mov ecx, dword [esi + 0x10]
fadd dword [ecx + 8]
mov eax, dword [esi + 0x38]
inc ebx
fstp dword [esp + 0x14]
cmp ebx, eax
mov dword [esp + 0x38], ebx
jl 0x4ad6b6
mov eax, dword [esp + 0x30]
test eax, eax
mov eax, dword [esp + 0x68]
je 0x4ad9b2
test eax, eax
je 0x4ad97e
mov dword [eax], 0
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4ad98c
mov edx, dword [esp + 0x14]
mov dword [eax], edx
fld dword [esp + 0x18]
fmul dword [esp + 0x1c]
fmul dword [0x66ecc4]
fstp dword [esp + 0x1c]
fld dword [esp + 0x18]
fmul dword [esp + 0x20]
fmul dword [0x66ecc4]
fstp dword [esp + 0x20]
jmp 0x4ad9f2
test eax, eax
je 0x4ad9c0
fld dword [esp + 0x14]
fmul dword [esp + 0x70]
fstp dword [eax]
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4ad9ce
mov dword [eax], 0
fld dword [esp + 0x18]
fmul dword [esp + 0x24]
fmul dword [0x66ecc4]
fstp dword [esp + 0x24]
fld dword [esp + 0x18]
fmul dword [esp + 0x28]
fmul dword [0x66ecc4]
fstp dword [esp + 0x28]
mov eax, dword [0x680ff4]
lea edx, [esp + 0x4c]
mov ecx, eax
push edx
mov dword [esp + 0x50], ecx
mov ecx, esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
call fcn.004ad420
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea edi, [esi + 0x1c]
lea ebx, [esi + 0x20]
lea ebp, [esi + 0x28]
mov dword [edi], eax
lea eax, [esi + 0x24]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x28]
push ebp
push eax
mov dword [eax], ecx
push ebx
push edi
lea ecx, [esp + 0x5c]
mov dword [ebp], edx
mov dword [esp + 0x78], eax
call fcn.004aac00
mov edx, dword [esi + 0x10]
mov eax, dword [edx + 0x20]
cmp eax, 1
je 0x4ada7d
cmp eax, 2
je 0x4ada7d
cmp eax, 5
je 0x4ada7d
cmp eax, 6
jne 0x4adaa9
mov eax, dword [esi + 8]
fld dword [eax + 0x18]
fmul dword [0x670250]
fld dword [edi]
mov eax, dword [esp + 0x68]
fsub st(1)
fstp dword [edi]
fld st(0)
fadd dword [ebx]
fstp dword [ebx]
fld st(0)
fadd dword [eax]
fstp dword [eax]
fld dword [ebp]
fsub st(1)
fstp dword [ebp]
fstp st(0)
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0xc