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

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push edi
or edi, 0xffffffff
cmp ebp, edi
jne 0x46aecb
mov edi, dword [esi + 0x3c]
cmp edi, 1
push ebx
mov ebx, dword [esi + 0x20]
fld dword [ebx + 0x14]
mov dword [esi + 0x54], 1
fmul dword [0x6bdbbc]
fstp dword [esp + 0xc]
jg 0x46ad80
mov dword [esi + 0x38], 2
jmp 0x46ae98
cmp dword [esi + 0x44], 3
jne 0x46ae98
push edi
xor cl, cl
mov eax, esi
call fcn.00469e80
fstp dword [esp + 0x14]
cmp edi, 2
fld dword [esi + 0x7c]
fadd dword [esi + edi*4 + 0xa4]
fstp dword [esp + 0x10]
fld dword [0x6bda00]
je 0x46addc
mov ebp, dword [esi + 0x18]
fstp st(0)
lea eax, [edi - 1]
push eax
mov cl, 1
mov eax, esi
call fcn.00469e80
fld dword [ebp + edi*4 + 0x20]
cmp edi, 2
fdiv dword [ebp + edi*4 + 0x1c]
mov ebp, dword [esp + 0x1c]
fmulp st(1)
fsub dword [0x6bddb8]
jg 0x46ae05
fld dword [ebx + 0x78]
fcomp dword [0x6bdbb0]
fnstsw ax
test ah, 5
jp 0x46adfd
mov ecx, dword [ebx + 0x18]
fld dword [ecx]
fadd dword [0x6bdc58]
fstp dword [esp + 0x10]
jmp 0x46ae05
mov dword [esp + 0x10], 0
fld dword [esp + 0xc]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 1
jne 0x46ae70
mov edx, dword [esi + 0x18]
mov eax, dword [edx + 0x18]
inc eax
cmp edi, eax
jge 0x46ae70
fstp st(0)
mov edx, 1
lea ecx, [esi + 0x24]
mov ebp, 4
mov edi, edi
mov eax, dword [ecx]
mov bl, byte [eax + 0x155]
test bl, bl
je 0x46ae56
fld dword [eax + 0x160]
fcomp dword [0x6bdb58]
fnstsw ax
test ah, 5
jp 0x46ae56
mov eax, 1
jmp 0x46ae58
xor eax, eax
and edx, eax
add ecx, 4
dec ebp
jne 0x46ae30
test edx, edx
mov ebp, dword [esp + 0x1c]
je 0x46ae98
lea ecx, [edi + 1]
mov dword [esi + 0x38], ecx
jmp 0x46ae98
fld dword [esp + 0xc]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
jp 0x46ae96
fld dword [esp + 0xc]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 0x41
jp 0x46ae98
lea edx, [edi - 1]
mov dword [esi + 0x38], edx
jmp 0x46ae98
fstp st(0)
cmp dword [esi + 0x44], 3
pop ebx
jne 0x46b0ba
cmp dword [esi + 0x38], edi
jle 0x46b0ba
cmp edi, 1
jl 0x46b0ba
mov eax, dword [esp + 8]
push eax
mov ecx, esi
call fcn.0046b0d0
pop edi
mov eax, ebp
pop ebp
add esp, 0xc
ret 4
cmp ebp, 0xfffffffe
jne 0x46b024
fld dword [0x7295c0]
mov eax, dword [esi + 0x44]
cmp eax, 3
fadd dword [esi + 0x50]
fst dword [esp + 0x10]
fstp dword [esi + 0x50]
jne 0x46b0ba
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x18]
fld dword [eax + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ecx + 8]
fmul dword [0x6bdbbc]
mov dword [esp + 0xc], ecx
mov ecx, dword [esi + 0x3c]
cmp ecx, 2
mov dword [esp + 0x18], edx
jle 0x46af2b
mov eax, dword [esi + 0x18]
fld dword [eax + ecx*4 + 0x20]
fdiv dword [eax + ecx*4 + 0x1c]
fmul dword [0x6f224c]
fmul dword [esp + 0xc]
jmp 0x46af4d
fld dword [eax + 0x78]
fcomp dword [0x6bdbb0]
fnstsw ax
test ah, 5
jp 0x46af47
fld dword [esp + 0x18]
fadd dword [0x6bdc58]
jmp 0x46af4d
fld dword [0x6bda00]
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x54]
cmp edx, eax
je 0x46afe5
mov dword [esi + 0x40], ecx
jge 0x46af92
fxch st(1)
mov dword [esi + 0x50], 0
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 0x41
jne 0x46af84
pop edi
mov eax, ebp
mov dword [esi + 0x54], ecx
mov dword [esi + 0x38], ecx
pop ebp
add esp, 0xc
ret 4
dec ecx
pop edi
mov eax, ebp
mov dword [esi + 0x38], ecx
pop ebp
add esp, 0xc
ret 4
cmp edx, eax
fstp st(0)
jle 0x46afaf
inc ecx
fstp st(0)
pop edi
mov eax, ebp
mov dword [esi + 0x38], ecx
mov dword [esi + 0x50], 0
pop ebp
add esp, 0xc
ret 4
fld dword [esp + 0x18]
fadd dword [0x6bdc58]
fxch st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x46b0ba
cmp ecx, 2
jle 0x46b0ba
mov ebp, edi
mov dword [esp + 0x18], edi
dec ecx
pop edi
mov eax, ebp
mov dword [esi + 0x38], ecx
pop ebp
add esp, 0xc
ret 4
fstp st(0)
fld dword [esp + 0x10]
fcomp dword [0x6bdcfc]
fnstsw ax
test ah, 0x41
je 0x46b012
cmp ecx, dword [esi + 0x40]
jle 0x46afaf
fld dword [esp + 0xc]
fsub dword [0x6bddbc]
fld st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x46afaf
mov ebp, edi
fstp st(0)
mov dword [esp + 0x18], edi
pop edi
mov eax, ebp
pop ebp
add esp, 0xc
ret 4
cmp dword [esi + 0x60], 3
jne 0x46b08b
mov eax, dword [esi + 0x3c]
cmp ebp, eax
je 0x46b08b
mov edx, dword [esi + 0x44]
mov ecx, 1
cmp edx, ecx
je 0x46b061
mov dword [esi + 0x48], 0
fild dword [0x72ca18]
pop edi
mov ebp, eax
fmul dword [0x6bdc98]
mov dword [esp + 0x14], eax
pop ebp
fstp dword [esi + 0x5c]
add esp, 0xc
ret 4
mov edx, dword [esi + 0x48]
test edx, edx
jne 0x46b0ba
cmp ebp, eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x38], ebp
jle 0x46b0ba
cmp eax, ecx
jl 0x46b0ba
mov edx, dword [esi + 0x6c]
push edx
mov ecx, esi
call fcn.0046b0d0
pop edi
mov eax, ebp
pop ebp
add esp, 0xc
ret 4
mov eax, dword [esi + 0x3c]
cmp ebp, eax
je 0x46b0ba
cmp ebp, dword [esi + 0x38]
je 0x46b0ba
cmp ebp, eax
mov dword [esi + 0x38], ebp
jle 0x46b0ba
cmp eax, 1
jl 0x46b0ba
mov eax, dword [esi + 0x20]
fld dword [eax + 0x14]
push ecx
fmul dword [0x6bdbbc]
mov ecx, esi
fstp dword [esp]
call fcn.0046b0d0
pop edi
mov eax, ebp
pop ebp
add esp, 0xc
ret 4